March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Current table visual
Table:Sales
Item | Sales | Sales% | Comulative Sum | Comulative % |
A | 5000 | 31.06% | 5000 | 31.06% |
B | 2000 | 12.42% | 7000 | 43.48% |
C | 3000 | 18.63% | 10000 | 62.11% |
D | 6000 | 37.27% | 16000 | 99.38% |
E | 100 | 0.62% | 16100 | 100.00% |
Total | 16100 | 100.00% | 16100 | 100% |
Current logic i used in above table:
Sales = sum(Sales[Sales Amount])
Comulative Sales =calculate(sum(Sales[sales Amount]),filter(allselected('Sales'),
Sales[Sales Amount]<=MAX(Sales[Sales Amount])
Total Sales Amount=calculate(sum(Sales[Sales Amount]),allselected(Sales))
Comulative % = Divide(Comulative Sum, Tital Sales Amount)
When Calculated measure Sales mount Sort by Desc then Comulative sum could be recalculate order by
Item | Sum(Sales Amount) | Sales% | Comulative Sum | Comulative % |
D | 6000 | 37.27% | 6000 | 37.27% |
A | 5000 | 31.06% | 11000 | 68.32% |
C | 3000 | 18.63% | 14000 | 86.96% |
B | 2000 | 12.42% | 16000 | 99.38% |
E | 100 | 0.62% | 16100 | 100.00% |
Total | 16100 | 100.00% | 16100 | 100% |
Thanks in Advance!
don't use MAX inside CALCULATE. Mind the filter context transition. Use variables.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
23 | |
15 | |
12 | |
9 | |
8 |
User | Count |
---|---|
41 | |
32 | |
29 | |
12 | |
12 |