0
0
Tableaubi_tool~10 mins

Rank calculations in Tableau - Cell-by-Cell Formula Trace

Choose your learning style9 modes available
Sample Data

This data shows sales amounts for different fruit products.

CellValue
A1Product
B1Sales
A2Apples
B2300
A3Bananas
B3450
A4Cherries
B4200
A5Dates
B5450
A6Elderberries
B6150
Formula Trace
RANK_UNIQUE(SUM([Sales]))
Step 1: SUM([Sales]) for Apples
Step 2: SUM([Sales]) for Bananas
Step 3: SUM([Sales]) for Cherries
Step 4: SUM([Sales]) for Dates
Step 5: SUM([Sales]) for Elderberries
Step 6: Rank sales values uniquely from highest to lowest
Cell Reference Map
    A          B
1 Product    Sales
2 Apples     300
3 Bananas    450
4 Cherries   200
5 Dates      450
6 Elderberries 150

Arrows: Sales values in B2:B6 feed into RANK_UNIQUE calculation.
The rank calculation uses the Sales values from cells B2 to B6.
Result
    A          B       C
1 Product    Sales   Rank
2 Apples     300     3
3 Bananas    450     1
4 Cherries   200     4
5 Dates      450     2
6 Elderberries 150    5
The Rank column shows the unique rank of each product's sales, with 1 being the highest sales.
Sheet Trace Quiz - 3 Questions
Test your understanding
What is the sum of sales for Cherries used in the rank calculation?
A150
B200
C300
D450
Key Result
RANK_UNIQUE ranks values uniquely from highest to lowest, assigning distinct ranks even when values tie.