Complete the code to rank sales by product using RANKX.
Product Rank = RANKX(ALL('Products'), SUM('Sales'[[1]]))
The measure sums the SalesAmount column to rank products by total sales.
Complete the code to rank customers by total sales in descending order.
Customer Rank = RANKX(ALL('Customers'), CALCULATE(SUM('Sales'[SalesAmount])), , [1])
DESC orders the ranking from highest to lowest sales.
Fix the error in the ranking measure by completing the missing argument.
Rank by Profit = RANKX(ALL('Products'), SUM('Sales'[Profit]), , , [1])
The 'Dense' option assigns ranks without gaps when there are ties.
Fill both blanks to rank products by total sales, ignoring filters and ranking in ascending order.
Product Rank = RANKX([1], SUM('Sales'[SalesAmount]), , [2])
ALL removes filters to rank all products; ASC ranks from smallest to largest.
Fill all three blanks to create a ranking measure that ranks customers by total sales, ignoring filters, ranking descending, and using dense ranking.
Customer Rank = RANKX([1], CALCULATE(SUM('Sales'[SalesAmount])), , [2], [3])
ALL removes filters on customers, DESC ranks from highest to lowest, and Dense handles ties without gaps.