Ranking with RANKX
Part of the DAX with CALCULATE section of Coddy's Power BI journey. Lesson 16 of 24.
RANKX(table, value): 1 for the highest value.
Category Rank = RANKX(ALL(Products[Category]), [Revenue])It works out the value for each row of the table, then places the current one.
Rank against ALL, or each bar is ranked against itself.
Challenge
Write Category Rank: each category's place by Revenue, 1 for the highest. It is checked for each category.
This lesson includes a short quiz. Start the lesson to answer it and track your progress.
All lessons in DAX with CALCULATE
3Row by Row in a Measure
SUMX Works Row by RowAVERAGEX and MAXXFILTER Picks RowsMeasures Inside IteratorsRanking with RANKXRecap - Profit Without Columns