Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

RANX Issues

Hello there, this is my first post. I have spent hours trying to figure this out. I have watched videos and tried all kinds of variations myself. For some reason, I can only get a 1 or a 2 to return on my rank. My assumption is that my sum formula is too complex or that there is an issue because my filter is a lookup from another table. 

I need to rank based on sum revenue, sum dials, and sum talktime, all separate. Looking at revenue specifically, here is my formula.

 

Revenue Rank = RANKX(ALL('Invoiced Sales Data - ZCA_ProfitabilityAnalysis'[Role]),[Rep Revenue])
 
Role is a lookup from a roster table 
Rep Revenue is a calculate sum with multiple filters.
 Name is also a lookup from the roster table
 
I am trying to produce 
Name            Revenue        Rank
John Doe        5,000             1
Alex Danger    4,000             2
etc 
 
and highlight the bottom 20%
I can stack rank the revenue to show what I need but need a rank so I can later add the rankings and divide by total ranks to get a productivity score. the issue is, I am stuck on step one and cannot for the life of me return anything other than a 1 or 2 for every entry. Joe and Alex will both be a 1 or a 2. 
 
I have tried 
Revenue Rank = RANKX(ALLSELECTED('Invoiced Sales Data - ZCA_ProfitabilityAnalysis'[Role]),[Rep Revenue])
Revenue Rank = RANKX(ALL('Invoiced Sales Data - ZCA_ProfitabilityAnalysis'[Role]),[Rep Revenue],,DESC, Dense)))
Revenue Rank = RANKX(ALL('Invoiced Sales Data - ZCA_ProfitabilityAnalysis'[Role]),CALCULATE([Rep Revenue]))
Revenue Rank = RANKX(ALL('Invoiced Sales Data - ZCA_ProfitabilityAnalysis'),[Rep Revenue])
And just about every variation between these possible I can think of.
 
This is taking much longer than I expected and am now nearing my deadline, please help. 
  • Anonymous's avatar
    Anonymous
    6 years ago

    I FIGURED IT OUT!!!!! Oh my gosh, such relief right now, it was such a simple fix. 

    I changed the grouping from role to name and then added a filter to the visual for the group I was looking for. Thanks for all of your help. 🙂

4 Replies