Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
116 | |
105 | |
69 | |
67 | |
43 |
User | Count |
---|---|
148 | |
103 | |
103 | |
88 | |
66 |