Forum Discussion
bluetronics
7 years agoHelper III
Cummulative Percentage by group
Hello All, I would like to get the result the same as tabel below: I can get total by customer, rank and % by Rank. but I donlt know how to get "cummulative % by rank". Pls. instruct me how to get ...
- 7 years ago
You can do it like this:
VAR CurSales = CALCULATE( SUM( Data[sales] ), ALLEXCEPT( Data, Data[Customer] ) ) RETURN DIVIDE( CALCULATE( SUM( Data[sales] ), FILTER( ALL( Data[Customer] ), CALCULATE( SUM( Data[sales] ), ALLEXCEPT( Data, Data[Customer] ) ) >= CurSales ), ALL( Data ) ), SUM( Data[sales] ) )
bluetronics
7 years agoHelper III
I found the queations what I would like to know. But I still don't understand how to do it.
Pls. help me someboy know the answer.
https://community.powerbi.com/t5/Desktop/Running-total-with-ranking/m-p/323103#M144010
Thanks in advance.