Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi Power PI Community
I'm having trouble finding a way to generate cumulative total charts. Here is the structure of my data:
Project no | Region | Market | Margin |
132 | USA | A | 100 |
432 | Canada | B | 200 |
243235 | Canada | B | 150 |
2432 | Asia | A | 2 |
ads23 | Asia | B | 23 |
43DT | USA | B | 343 |
234 | USA | C | 453 |
345 | Canada | A | 344 |
A234 | Asia | A | 23 |
D45 | Canada | B | 24 |
36457 | USA | B | 345 |
57467 | USA | A | 234 |
54325 | Asia | C | 123 |
... | ... | ... | ... |
I want to generate a chart showing the cumulative total Margin for each market/region I select, RANKED in decreasing order of Margin. For example I might want to show on a graph the cumulative margin for the USA for all 3 markets:
X axis is just the number of projects. Largest margins are to the left.
I'm pretty sure there is not easy way to achieve this... Any hints?
Hi SRioux ,
You can create measure "Comulative_Margin" to get the cumulative total Margin.
Comulative_Margin = CALCULATE(SUM(Table1[Margin]),FILTER(ALLSELECTED(Table1),ISONORAFTER (Table1[Margin], MAX ( Table1[Margin]), DESC )))
Then, create Scatter chart to display the cumulative total Margin for each market/region selected, ranked in descend order of Margin. For example, when select USA in Slicer, return the result showing below picture.
Here is my pbix test file link: https://qiuyunus-my.sharepoint.com/:u:/g/personal/pbipro_qiuyunus_onmicrosoft_com/Eb3IJv9Au1RKsVTyzG...
Best Regards,
Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks Amy
The ranking in descending order of Margin is not working. Every dot of a given market should be above the one on its left (strictly increasing function). The X axis of the scatter plot needs to be Number of projects, not project number.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
68 | |
64 | |
52 | |
39 | |
26 |
User | Count |
---|---|
80 | |
57 | |
45 | |
44 | |
35 |