Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hello,
I need your help because I am struggling with a cumulative sum that isn't linked to a date.
I have a visual that looks like this:
And I want to achieve what I wrote in the column 1.
For example, the formula for the % of the total is this:
I have seen some formulas containing the dates as a way to sort, but the dates are linked with individual sales. So I don't know how to pull this off.
Thanks in advance
Sebastien
Solved! Go to Solution.
Hi @Seabastein ,
You can use sales as index to calculate cumulative sum. Please refer this:
cumulative sum =
VAR _s =
SUMMARIZE (
ALLSELECTED ( data ),
[customer name],
"_sales", SUM ( data[sales] ),
"%", [ % of total]
)
RETURN
SUMX ( FILTER ( _s, [_sales] <= SUM ( data[sales] ) ), [%] )
Best Regards
Community Support Team _ chenwu zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Seabastein ,
You can use sales as index to calculate cumulative sum. Please refer this:
cumulative sum =
VAR _s =
SUMMARIZE (
ALLSELECTED ( data ),
[customer name],
"_sales", SUM ( data[sales] ),
"%", [ % of total]
)
RETURN
SUMX ( FILTER ( _s, [_sales] <= SUM ( data[sales] ) ), [%] )
Best Regards
Community Support Team _ chenwu zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Your case is an simplified variant of Pareto analysis. There are countless examples on the forum or on the internet.
Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
Ask questions in Eventhouse and KQL, Eventstream, and Reflex.
Check out the May 2024 Power BI update to learn about new features.
User | Count |
---|---|
90 | |
80 | |
60 | |
59 | |
58 |
User | Count |
---|---|
157 | |
119 | |
104 | |
77 | |
69 |