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
Hi Everyone,
I created one measure for cumulative percentage, but when value of any product is same then cumulative percentage is also getting same. Why ?
If i do that in excel will give add same value and returning different percentage. Anyone knows why this gap ?
see the images for reference
Solved! Go to Solution.
Hi @krishb1414 ,
According to your description, here are my steps you can follow as a solution.
(1) This is my test data.
(2) We can create a measure.
cumulative percentage =
var _total=CALCULATE(SUM('Table'[total price]),FILTER(ALL('Table'),'Table'[total price]))
var _price=CALCULATE(SUM('Table'[price]),FILTER(ALL('Table'),'Table'[Product]<=MAX('Table'[Product])))
return DIVIDE(_price,_total,0)
(3) Then the result is as follows.
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @krishb1414 ,
According to your description, here are my steps you can follow as a solution.
(1) This is my test data.
(2) We can create a measure.
cumulative percentage =
var _total=CALCULATE(SUM('Table'[total price]),FILTER(ALL('Table'),'Table'[total price]))
var _price=CALCULATE(SUM('Table'[price]),FILTER(ALL('Table'),'Table'[Product]<=MAX('Table'[Product])))
return DIVIDE(_price,_total,0)
(3) Then the result is as follows.
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
User | Count |
---|---|
90 | |
89 | |
85 | |
73 | |
49 |
User | Count |
---|---|
167 | |
147 | |
92 | |
70 | |
58 |