Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
I'm trying to create a calculated column that calculates the cumulative sum. I created one in a DAX measure and its working fine:
Solved! Go to Solution.
Hi, @Aymane
You are using a calculated column instead of measure column to display the result, so the final result is aggregated without recomputing.
You just need to change the summarize type of calculated column 'Cumulative Count' from 'Sum' to 'Maximum'/'Minimum'/'Average'.
Best Regards,
Community Support Team _ Eason
Hi @amitchandak,
Thanks for your response.
I have tried your solution but it still doesn't give the correct output as you can see below:
Hi, @Aymane
You are using a calculated column instead of measure column to display the result, so the final result is aggregated without recomputing.
You just need to change the summarize type of calculated column 'Cumulative Count' from 'Sum' to 'Maximum'/'Minimum'/'Average'.
Best Regards,
Community Support Team _ Eason
@Aymane , a new column
CumulativeCount =
CALCULATE(
SUM(Fact_CRM_CT[Count]),
FILTER((Fact_CRM_CT),Fact_CRM_CT[DateKey] <= earlier(Fact_CRM_CT[DateKey]) ))
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
90 | |
88 | |
83 | |
64 | |
49 |
User | Count |
---|---|
127 | |
108 | |
88 | |
70 | |
66 |