Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.
Hi,
I am trying to include a column for cumulative sum in Power BI table visual.
Obviously the following version is a simplified scenario compared to the complex case I am implementing.
Sample table
Code | Qty |
A | 1 |
A | 1 |
B | 1 |
C | 1 |
A | 1 |
D | 1 |
E | 1 |
B | 1 |
B | 1 |
B | 1 |
B | 1 |
Result table without Cumulative total (order by Qty descending)
Code | Qty |
B | 5 |
A | 3 |
C | 1 |
D | 1 |
E | 1 |
DAX formula the I use at the moment
Code | Qty | Running Total MEASURE | Expected values |
B | 5 | 11 | 5 |
A | 3 | 11 | 8 |
C | 1 | 11 | 9 |
D | 1 | 11 | 10 |
E | 1 | 11 | 11 |
Any help would be greatly appreciated.
Regards,
Solved! Go to Solution.
Hi @Gpensabene
Sorry should have a reference table and not duplicate, please see the attached.
Hi @Gpensabene
Please see the attached file with a solution
Hi @Mariusz
It is not work, you have add an hardcoded table with the current order.
I added new records at 'A'
expected
Code | Qty | Expected values |
A | 8 | 8 |
B | 5 | 13 |
C | 1 | 14 |
D | 1 | 15 |
E | 1 | 16 |
Thanks for the attempt
Hi @Gpensabene
Sorry should have a reference table and not duplicate, please see the attached.
Hi,
these pbix files have a fault on opening.
dmcn_pbix
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
72 | |
71 | |
70 | |
42 | |
42 |
User | Count |
---|---|
49 | |
42 | |
29 | |
28 | |
27 |