0
0
Tableaubi_tool~20 mins

Ascending and descending sort in Tableau - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Sorting Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Sort Order in Tableau

In Tableau, you want to sort a bar chart showing sales by product category in descending order of sales. Which option correctly describes how to apply this sort?

AClick the product category axis, then select Sort > Sort by Field > Sales > Descending.
BRight-click the sales axis and choose Sort > Ascending to sort sales from highest to lowest.
CDrag the sales field to the Filters shelf and select Descending order.
DUse the Analytics pane to drag a Sort object onto the view and select Ascending.
Attempts:
2 left
💡 Hint

Think about sorting categories by a measure value, not sorting the axis itself.

dax_lod_result
intermediate
2:00remaining
Sorting Sales by Year in Ascending Order

You have a sales table with a Year column and a Sales Amount column. You want to create a calculated measure in Tableau that returns the total sales sorted by Year ascending. Which Tableau calculation and sort option will achieve this?

ACreate a calculated field: SUM([Sales Amount]) and sort Year ascending in the view.
BCreate a calculated field: RANK(SUM([Sales Amount])) and sort Year descending.
CCreate a calculated field: TOTAL(SUM([Sales Amount])) and sort Year descending.
DCreate a calculated field: AVG([Sales Amount]) and sort Year ascending.
Attempts:
2 left
💡 Hint

Think about the simplest aggregation and sorting by the Year dimension.

visualization
advanced
2:00remaining
Identify the Correct Sort Result

You have a bar chart showing sales by region. The regions are sorted descending by sales. Which of the following visualizations correctly represents this sorting?

ABars arranged randomly with no clear order.
BBars arranged alphabetically by region name, ignoring sales values.
CBars arranged from longest to shortest, left to right, with the region having highest sales on the left.
DBars arranged from shortest to longest, left to right, with the region having highest sales on the right.
Attempts:
2 left
💡 Hint

Descending sort means highest values first.

🔧 Formula Fix
advanced
2:00remaining
Troubleshoot Incorrect Sort in Tableau

You created a bar chart sorted descending by profit, but the bars appear in ascending order. What is the most likely cause?

AYou sorted the dimension by a different measure, like sales, not profit.
BYou applied a filter that removed the highest profit values.
CYou used a calculated field with an error causing sort to fail.
DYou sorted the measure axis instead of the dimension labels.
Attempts:
2 left
💡 Hint

Sorting the wrong part of the chart can cause unexpected order.

🎯 Scenario
expert
3:00remaining
Complex Sorting Scenario with Multiple Dimensions

You have a sales dashboard with two dimensions: Category and Sub-Category. You want to sort Sub-Category descending by total sales within each Category, and Categories ascending alphabetically. Which approach achieves this in Tableau?

AUse a combined calculated field concatenating Category and Sub-Category and sort ascending.
BSort Category ascending by name, then sort Sub-Category descending by SUM(Sales) using nested sorts on each dimension.
CSort Sub-Category ascending by name and Category descending by SUM(Sales).
DSort both Category and Sub-Category descending by SUM(Sales) globally without considering hierarchy.
Attempts:
2 left
💡 Hint

Think about sorting each dimension separately respecting hierarchy.