Forum Discussion
johnmelbourne
3 years agoHelper V
RANKX query
Hi, Below is my scenario. Any assistance would be greatly appreciated. I have attached a pbix with the data. One note I didn't include below was, doesn't rank A as has no services (is blank). ...
- 3 years ago
Try this solution.
Data model:
Measures:
Total Complaints = SUM ( FactTable[Total Complaints] )Total Services = SUM ( FactTable[Total Services] )Rank = RANKX ( ALLSELECTED ( FactTable ), [Total Complaints],, ASC )Create a matrix using DimProvider[Provider] and the three measures. Add a visual filter:
Result:
DataInsights
3 years agoSuper User
Try this solution.
Data model:
Measures:
Total Complaints = SUM ( FactTable[Total Complaints] )Total Services = SUM ( FactTable[Total Services] )Rank = RANKX ( ALLSELECTED ( FactTable ), [Total Complaints],, ASC )
Create a matrix using DimProvider[Provider] and the three measures. Add a visual filter:
Result:
- johnmelbourne3 years agoHelper V
Many thanks DataInsights , I really appreciate your time and response. The visual filter is necessary I believe. I couldn't work out any other way. Thanks.
John
- DataInsights3 years agoSuper User