Bird
Raised Fist0
Tableaubi_tool~10 mins

Ascending and descending sort in Tableau - Cell-by-Cell Formula Trace

Choose your learning style10 modes available
Sample Data

This data shows sales amounts for different fruit products.

CellValue
A1Product
B1Sales
A2Apples
B2150
A3Bananas
B3120
A4Cherries
B4180
A5Dates
B590
Formula Trace
SORT([Product], [Sales], ASC)
Step 1: List of products with sales: [(Apples,150), (Bananas,120), (Cherries,180), (Dates,90)]
Step 2: Sort products by Sales in ascending order
Cell Reference Map
    A        B
1 |Product | Sales
2 |Apples  | 150  
3 |Bananas | 120  
4 |Cherries| 180  
5 |Dates   |  90  

Sort uses column B (Sales) to reorder column A (Product).
The formula sorts the Product column based on the Sales column values.
Result
    A        B
1 |Product | Sales
2 |Dates   |  90  
3 |Bananas | 120  
4 |Apples  | 150  
5 |Cherries| 180  

Products are sorted ascending by sales.
The table shows products sorted from lowest to highest sales.
Sheet Trace Quiz - 3 Questions
Test your understanding
What product appears first after sorting ascending by sales?
AApples
BDates
CCherries
DBananas
Key Result
SORT(list_to_sort, sort_by_column, ASC|DESC) sorts the list ascending or descending by the chosen column.

Practice

(1/5)
1. In Tableau, what does sorting data in ascending order do?
easy
A. It arranges data from smallest to largest values.
B. It arranges data from largest to smallest values.
C. It groups data by categories alphabetically.
D. It filters out duplicate data points.

Solution

  1. Step 1: Understand ascending sort meaning

    Ascending order means arranging values starting from the smallest and going to the largest.
  2. Step 2: Apply to Tableau sorting

    In Tableau, sorting ascending will show data from smallest to largest values.
  3. Final Answer:

    It arranges data from smallest to largest values. -> Option A
  4. Quick Check:

    Ascending = smallest to largest [OK]
Hint: Ascending means smallest to largest values [OK]
Common Mistakes:
  • Confusing ascending with descending order
  • Thinking sorting filters data
  • Assuming sorting groups data instead
2. Which of the following is the correct way to sort a field in descending order in Tableau?
easy
A. Click the field header once to toggle descending sort.
B. Use the Sort menu and choose 'Descending'.
C. Right-click the field header and select 'Sort Ascending'.
D. Drag the field to the Filters shelf.

Solution

  1. Step 1: Identify sorting options in Tableau

    Tableau allows sorting via the Sort menu where you can explicitly choose ascending or descending.
  2. Step 2: Confirm descending sort method

    Choosing 'Descending' in the Sort menu correctly sorts data from largest to smallest.
  3. Final Answer:

    Use the Sort menu and choose 'Descending'. -> Option B
  4. Quick Check:

    Sort menu + Descending = correct method [OK]
Hint: Use Sort menu for clear ascending/descending choice [OK]
Common Mistakes:
  • Clicking field header once only sorts ascending
  • Dragging fields to Filters shelf does not sort
  • Selecting 'Sort Ascending' sorts opposite order
3. Given a Tableau bar chart sorted descending by Sales, what will be the order of bars if Sales values are: 100, 250, 50, 300?
medium
A. 300, 250, 100, 50
B. 250, 300, 100, 50
C. 100, 50, 250, 300
D. 50, 100, 250, 300

Solution

  1. Step 1: Understand descending sort order

    Descending order arranges values from largest to smallest.
  2. Step 2: Sort given Sales values descending

    Values sorted descending: 300, 250, 100, 50.
  3. Final Answer:

    300, 250, 100, 50 -> Option A
  4. Quick Check:

    Descending sort = largest to smallest [OK]
Hint: Descending means largest value first [OK]
Common Mistakes:
  • Sorting ascending instead of descending
  • Mixing up order of values
  • Assuming default order is alphabetical
4. You tried to sort a dimension in Tableau descending but the data still appears ascending. What is the likely cause?
medium
A. Tableau does not support descending sort on dimensions.
B. The data source is corrupted and cannot sort.
C. You applied sorting on a measure instead of a dimension.
D. You clicked 'Sort Ascending' instead of 'Sort Descending'.

Solution

  1. Step 1: Check sorting action performed

    Clicking 'Sort Ascending' will keep data in ascending order, not descending.
  2. Step 2: Verify Tableau sorting capabilities

    Tableau supports descending sort on dimensions; data source corruption is unlikely cause.
  3. Final Answer:

    You clicked 'Sort Ascending' instead of 'Sort Descending'. -> Option D
  4. Quick Check:

    Wrong sort direction clicked = ascending shown [OK]
Hint: Double-check sort direction clicked in Tableau [OK]
Common Mistakes:
  • Assuming Tableau can't sort dimensions descending
  • Blaming data source without checking sort settings
  • Sorting measure instead of dimension by mistake
5. You have a sales report with Product Categories and Sales. You want to show the top 3 categories by sales in descending order. Which steps should you follow in Tableau?
hard
A. Sort Product Categories ascending by Sales, then filter top 3.
B. Sort Product Categories descending by Sales, then filter top 3.
C. Filter top 3 Product Categories by Sales, then sort descending by Sales.
D. Filter top 3 Product Categories by Sales, then sort ascending by Sales.

Solution

  1. Step 1: Filter top 3 Product Categories by Sales

    Apply a filter to keep only the top 3 categories based on Sales values.
  2. Step 2: Sort the filtered categories descending by Sales

    Sort these top 3 categories so the highest sales appear first.
  3. Final Answer:

    Filter top 3 Product Categories by Sales, then sort descending by Sales. -> Option C
  4. Quick Check:

    Filter top 3 first, then descending sort [OK]
Hint: Filter top 3 first, then sort descending [OK]
Common Mistakes:
  • Sorting before filtering top 3
  • Sorting ascending instead of descending
  • Filtering after sorting ascending
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard