Bird
Raised Fist0
Tableaubi_tool~10 mins

Ascending and descending sort in Tableau - Interactive Code Practice

Choose your learning style10 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to sort the sales data in ascending order by the 'Category' field.

Tableau
SORT([Category], [1])
Drag options to blanks, or click blank then click option'
ABOTTOM
BDESC
CTOP
DASC
Attempts:
3 left
💡 Hint
Common Mistakes
Using DESC instead of ASC for ascending sort
Confusing TOP or BOTTOM with sort direction
2fill in blank
medium

Complete the code to sort the sales data in descending order by the 'Profit' field.

Tableau
SORT([Profit], [1])
Drag options to blanks, or click blank then click option'
AASC
BDESC
CMIN
DMAX
Attempts:
3 left
💡 Hint
Common Mistakes
Using ASC instead of DESC for descending sort
Confusing MIN or MAX with sort direction
3fill in blank
hard

Fix the error in the code to sort the 'Region' field in descending order.

Tableau
SORT([Region], [1])
Drag options to blanks, or click blank then click option'
AUP
BDOWN
CDESC
DASC
Attempts:
3 left
💡 Hint
Common Mistakes
Using UP or DOWN which are not valid sort directions
Using ASC instead of DESC for descending sort
4fill in blank
hard

Fill both blanks to sort the 'Sales' field in ascending order and the 'Quantity' field in descending order.

Tableau
SORT([Sales], [1]) and SORT([Quantity], [2])
Drag options to blanks, or click blank then click option'
AASC
BDESC
CTOP
DBOTTOM
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up ASC and DESC
Using TOP or BOTTOM instead of ASC or DESC
5fill in blank
hard

Fill all three blanks to sort the 'Category' field ascending, 'Profit' descending, and 'Region' ascending.

Tableau
SORT([Category], [1]), SORT([Profit], [2]), SORT([Region], [3])
Drag options to blanks, or click blank then click option'
ADESC
BASC
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing ascending and descending keywords
Using the same direction for all fields

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