stbrooks13
New Member
- Joined
- Dec 9, 2014
- Messages
- 40
I am ranking our target schools by their school level. The rankings appear how they should in a grid view with all schools selected. However, when a single school is selected in the slicer, the ranking changes.
For instance, Appalachian State University is ranked #1 in the national school level. However, when I select Appalachian State University from the school list (national school level is also selected), its ranking shows as #2 .
The formula I'm using is:
Rank Overall = IF(AND(HASONEVALUE(School[School Level]),NOT(ISBLANK([Rank Total]))),RANKX(ALL(School[School]),[Rank Total],,ASC,DENSE),IF(AND(HASONEVALUE(School[School Level]),ISBLANK([Rank Total])),CALCULATE([Count of Schools],ALLEXCEPT(School,School[School Level])),BLANK()))
Where Rank Total is a sum of all leading indicator rankings using the same ranking format above.
For instance, Appalachian State University is ranked #1 in the national school level. However, when I select Appalachian State University from the school list (national school level is also selected), its ranking shows as #2 .
The formula I'm using is:
Rank Overall = IF(AND(HASONEVALUE(School[School Level]),NOT(ISBLANK([Rank Total]))),RANKX(ALL(School[School]),[Rank Total],,ASC,DENSE),IF(AND(HASONEVALUE(School[School Level]),ISBLANK([Rank Total])),CALCULATE([Count of Schools],ALLEXCEPT(School,School[School Level])),BLANK()))
Where Rank Total is a sum of all leading indicator rankings using the same ranking format above.