Forum Discussion
chsardas
8 years agoRegular Visitor
Running total with ranking
Hi, I'm trying to do a Running Total based on a rank of a measure. After a little of research i've found the way to do the running total but i'm having a trouble with that. I create a rank m...
- 8 years ago
Finnally i´ve got the solution.
I´ve changed the approach of the formula.
Used this guide (it´s in spanish)
Zubair_Muhammad
8 years agoCommunity Champion
HI chsardas
Instead of Running_Total try doing this for Ranking City
The idea is to differentiate between 2 similar Ranks by decimal points. You can hide the decimals for RANKING
Ranking City =
RANKX ( ALL ( Sales[City] ), [QTR Quantity],, DESC, SKIP )
+ RANDBETWEEN ( 1, 100 ) / 1000chsardas
8 years agoRegular Visitor
Nice idea, now the ranking shows different values:
But the running total keeps returning the same, it looks like the top n doesn't take care of the decimal. :(
- Zubair_Muhammad8 years agoCommunity Champion
HI chsardas
Sorry I went to sleep.
Could you try this please?
I hope it will work
Ranking City = RANKX ( ALL ( Sales[City] ), [QTR Quantity] + RANDBETWEEN ( 1, 100 ) / 1000, , DESC, SKIP )- chsardas8 years agoRegular Visitor
Hi!! Now the ranking works better but the running total is really weird:
- Zubair_Muhammad8 years agoCommunity ChampionCould you share your file via one drive or googledrive?