Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi all !!
I need to make a pareto chart but with negative values, for this I need to accumulate the negative values from higher to lower.
The first step is to rank the negative totals from highest to lowest:
Solved! Go to Solution.
Hi @Anonymous
Thanks for your feedback.
Based on your details, I modified my sample and the measures:
Use below measure to calculate the rankx :
Rankx = RANKX(ALL('Sample'),[ValuesMeasure],,DESC)
Then use the below measure to generate the cumulative results:
FinalResults = var a = [Rankx]
Return
SUMX(FILTER(ALL('Sample'),[Rankx]<=a),[ValuesMeasure])
Hi @Anonymous
Thanks for your feedback.
Based on your details, I modified my sample and the measures:
Use below measure to calculate the rankx :
Rankx = RANKX(ALL('Sample'),[ValuesMeasure],,DESC)
Then use the below measure to generate the cumulative results:
FinalResults = var a = [Rankx]
Return
SUMX(FILTER(ALL('Sample'),[Rankx]<=a),[ValuesMeasure])
Hi @Anonymous
Please let me know if you'd like to get below results:
1. simple table below:
2. Add rank column:
Rank = RANKX('Sample',[Values],,DESC)
3. Add the measure:
Measure 4 = CALCULATE(SUM('Sample'[Values]),FILTER(ALL('Sample'),[Rank]<=MAX('Sample'[Rank])))
Hi @v-diye-msft !
Thank you for your reply ! In this case it doesn't work.
The problem is this:
The columns "Values Negative" and "Rank" are two measures, so I couldn't use the last MAX of your measure.
Values Negatives = CALCULATE ( [TOTAL]; FILTER ( D_Store; [TOTAL] < 0 ) )Rank = RANKX(ALL(D_Store[store id]);[Values Negatives];;ASC)
What I need is to create a measure that accumulates the negative values from ranking 1 to the last.
For example the "New Measure":
Regards!
Hi @Anonymous is not possible because rank is a measure, it is not stored in a table.
Instead of a measure, you can create a calculated column for the same.
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 40 | |
| 37 | |
| 32 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 66 | |
| 58 | |
| 31 | |
| 25 | |
| 24 |