Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello,
I am trying to create calculated column Sale_Sum that will sum up all values from Sale_Amt column grouped by Client_ID.
My formula is:
Sale_Sum = SUMX(FILTER(Sales;Sales[Client_ID] = EARLIER(Sales[Client_ID]));Sales[Sale_Amt])
However this sums up all values in dataset, while I want to limit it only to visible rows.
This means with filters applied I would like to see Sale_Sum of 100 next to Client_ID = 1.
Dataset:
Dashboard without filters:
Dashboard with filters:
Thanks in advance.
Mike
Solved! Go to Solution.
Done, I have used:
Sale_Sum_Group_By_Meas = CALCULATE(SUM(Sales[Sale_Amt]);FILTER(ALLSELECTED(Sales);Sales[Client_ID] = MAX(Sales[Client_ID])))
bump
Done, I have used:
Sale_Sum_Group_By_Meas = CALCULATE(SUM(Sales[Sale_Amt]);FILTER(ALLSELECTED(Sales);Sales[Client_ID] = MAX(Sales[Client_ID])))
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
99 | |
80 | |
64 | |
57 |
User | Count |
---|---|
145 | |
110 | |
91 | |
84 | |
66 |