Forum Discussion
SUB RANKX HELP
- 3 years ago
Hi, mitchemmonkey
These two rankings are independent of each other and don't seem to be that complicated.
I think the following two formulas will work.
Calculated columns:
TESTRANK2 = RANKX('Table','Table'[TETS2],,DESC,Dense)Rank = RANKX(FILTER('Table','Table'[TETS2]=EARLIER('Table'[TETS2])),'Table'[LOT NO2],,DESC,Dense)Other Related threads:
https://www.sqlbi.com/articles/rankx-on-multiple-columns-with-dax-and-power-bi/
Best Regards,
Community Support Team _ Eason - 3 years ago
Hi, mitchemmonkey
Try this:
Max rank = CALCULATE(MAX('Table'[Rank]),ALLEXCEPT('Table','Table'[TETS2]))Best Regards,
Community Support Team _ Eason
Hi, mitchemmonkey
These two rankings are independent of each other and don't seem to be that complicated.
I think the following two formulas will work.
Calculated columns:
TESTRANK2 = RANKX('Table','Table'[TETS2],,DESC,Dense)Rank = RANKX(FILTER('Table','Table'[TETS2]=EARLIER('Table'[TETS2])),'Table'[LOT NO2],,DESC,Dense)
Other Related threads:
https://www.sqlbi.com/articles/rankx-on-multiple-columns-with-dax-and-power-bi/
Best Regards,
Community Support Team _ Eason
One more question. How do I change the DAX to reurnthe highest rank for each category:, i.e.,:
- v-easonf-msft3 years agoCommunity Support
Hi, mitchemmonkey
Try this:
Max rank = CALCULATE(MAX('Table'[Rank]),ALLEXCEPT('Table','Table'[TETS2]))Best Regards,
Community Support Team _ Eason