Forum Discussion
bprokop
2 years agoFrequent Visitor
Display Rank Value In A Card While Including and Excluding Slicers
In the attached PBIX, I am trying to create a measure for the Dynamic Rank All Card that will display the Rank for the Hospital ID but all it to change based on any other Slicer Selected. Currently,...
- 2 years ago
Morning bprokop
Try this measure...
VAR SelectedHospitals = CALCULATETABLE ( ALLSELECTED ( Data ), REMOVEFILTERS ( Data[Hospital ID] ) ) RETURN RANK ( SKIP, SelectedHospitals, ORDERBY ( Data[National Rank], ASC ) )I think this is the desired result?
littlemojopuppy
2 years agoCommunity Champion
Hi bprokop
There are some "new" (within the last year) window functions that are excellent at determining RANK based on selections. Take a look at those.
littlemojopuppy
2 years agoCommunity Champion
Morning bprokop
Try this measure...
VAR SelectedHospitals =
CALCULATETABLE (
ALLSELECTED ( Data ),
REMOVEFILTERS ( Data[Hospital ID] )
)
RETURN
RANK (
SKIP,
SelectedHospitals,
ORDERBY ( Data[National Rank], ASC )
)
I think this is the desired result?