Forum Discussion
chudson
Helper IV
7 years agoUsing RANKX or DAX measure to creating a ranking based on 2 calculated measures
Hi, I'm hoping someone can help me here with ranking a report visual table. Below is an example of the data I'm showing as a table visual in a report and I have a rankx function that ranks the d...
- 7 years ago
hi, chudson
You could refer to this same post:
And for your case, just use this formula:
Final Rank = RANKX ( ALLSELECTED(DimSalesAgent[DISTRICT]), RANKX(ALLSELECTED(DimSalesAgent[DISTRICT]),[% to Quota],,DESC) + DIVIDE ( RANKX(ALLSELECTED(DimSalesAgent[DISTRICT]),[QTD Quota],,DESC), ( COUNTROWS ( ALLSELECTED(DimSalesAgent[DISTRICT]) ) + 1 ) ) ,,ASC)Result:
Best Regards,
Lin
v-lili6-msft
Community Support
7 years agohi, chudson
You could refer to this same post:
And for your case, just use this formula:
Final Rank =
RANKX (
ALLSELECTED(DimSalesAgent[DISTRICT]),
RANKX(ALLSELECTED(DimSalesAgent[DISTRICT]),[% to Quota],,DESC)
+ DIVIDE (
RANKX(ALLSELECTED(DimSalesAgent[DISTRICT]),[QTD Quota],,DESC),
( COUNTROWS ( ALLSELECTED(DimSalesAgent[DISTRICT]) ) + 1 )
)
,,ASC)
Result:
Best Regards,
Lin
- chudson7 years ago
Helper IV
Thanks! that formula helps so much!