Complete the code to calculate the rank of sales in Tableau.
RANK_UNIQUE([1])We use SUM([Sales]) inside RANK_UNIQUE() to rank total sales values uniquely.
Complete the code to rank sales in descending order.
RANK_DENSE([1], 'desc')
Use SUM([Sales]) to rank sales values densely in descending order.
Fix the error in the rank calculation to rank average profit.
RANK([1])Tableau requires field names in square brackets. Use AVG([Profit]) for correct syntax.
Fill both blanks to rank sales by category and reset rank for each region.
RANK_UNIQUE(SUM([Sales]), [1] = '[2]')
Use PARTITION BY Region to reset rank for each region.
Fill all three blanks to rank profit descending, partitioned by segment, ordered by profit.
RANK_DENSE([1], [2] = '[3]')
Rank profit descending, partition by segment using RANK_DENSE(SUM([Profit]), PARTITION BY = 'Segment').
