Forum Discussion

bdehning's avatar
bdehning
Post Prodigy
3 years ago

Top N Measure and Need 3rd Variable

I use the following measure allot in my report to calculate Top N for visuals.  

 

Top 25 Cause Group Freq then Sum = CALCULATE([Count of Total Gross Incurred],KEEPFILTERS(TOPN(25,ALL(InjuryCause[Cause Grouping]),[Count of Total Gross Incurred], DESC,[Sum of Total Gross Incurred],DESC)))
 
There are times when after using Count of Total Gross Incurred then Sum of Total Gross Incurred to break ties I still end with more than the N I selected.
 
What 3rd variable could I use and how would I add it to the measure to break remaining ties?