cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Nick221_
Frequent Visitor

RankX formula with tie's

I have the below formula that will rank my 'Risks" by the sum of Immediate high and Long term high. In some situations there are risks that have the same total number. In instances where there are ties, I would like the rank to order the risk that has more Immediate high responses.

 

Example.

 

Risk 1 Total number 54. Immediate high 24. Long Term High 30

Risk 2 Total number 52 Immediate high 43. Long Term High 9

Risk 3 Total number 52. Immediate high 48. Long Term High 4

 

Risk 1 should be 1 since it has higher total. Risk 3 should be come in at rank 2, because there is a higher number of Immediate High. Then Risk 2 at 3.

 

Here is my current formula:

Risk Order = RANKX(ALLSELECTED('Survey 2022'[Risks]),CALCULATE(SUM('Survey 2022'[Immediate High]) + SUM('Survey 2022'[Long Term High])))
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User
1 REPLY 1
amitchandak
Super User
Super User

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Top Solution Authors
Top Kudoed Authors