fbpx
Ynteractive logo

Tableau: How to Display Correct Grand Total with a Rank Filter

Step 1:

Start with [State] on rows, and sum([Sales]) on Text.

Tableau: How to Display Correct Grand Total with a Rank Filter - step 1 screenshot

Step 2:

Create a rank calculation. Rank(Sum([Sales]))

Tableau: How to Display Correct Grand Total with a Rank Filter - step 2 screenshot

Step 3:

Add the calculation to the filter shelf. Keep only the top 3 values.

Tableau: How to Display Correct Grand Total with a Rank Filter - step 3 screenshot

Step 4:

The grand total still displays the unfiltered amount.

Step 5:

Drag [State] onto the filter shelf.

Tableau: How to Display Correct Grand Total with a Rank Filter - step 4 screenshot

Step 6:

Set the filter to be Top 3 by sum([Sales])

Tableau: How to Display Correct Grand Total with a Rank Filter - step 5 screenshot

Step 7:

Now, the grand total is filtered to only the top 3

Tableau: How to Display Correct Grand Total with a Rank Filter - step 6 screenshot