0
0
Tableaubi_tool~20 mins

Parameter for top N control in Tableau - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Top N Parameter Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
dax_lod_result
intermediate
2:00remaining
Using Parameter to Filter Top N Customers by Sales

You have a parameter TopN set by the user to select how many top customers to display based on sales. Which Tableau calculation correctly filters the top N customers?

Tableau
RANK(SUM([Sales])) <= [TopN]
AINDEX() <= [TopN]
BSUM([Sales]) >= [TopN]
CRANK(SUM([Sales])) <= [TopN]
DRANK([TopN]) <= SUM([Sales])
Attempts:
2 left
💡 Hint

Think about how ranking works and how to compare it with the parameter value.

visualization
intermediate
2:00remaining
Best Visualization for Top N Parameter Control

You want to let users select the number of top products to display using a parameter. Which visualization type best supports this interactive top N control?

ABar chart with a parameter control to filter top N products
BLine chart showing sales over time without product filtering
CScatter plot with fixed axes and no parameter
DPie chart showing all products without filtering
Attempts:
2 left
💡 Hint

Consider which chart type clearly shows ranking and can be filtered by top N.

🧠 Conceptual
advanced
2:00remaining
Why Use a Parameter for Top N Instead of a Filter?

What is the main advantage of using a parameter to control the top N items displayed instead of a fixed filter in Tableau?

AParameters allow users to dynamically change the number of items shown without editing the filter each time
BFilters are faster to compute and always better than parameters
CParameters automatically update with data changes without user input
DFilters can only be applied to dimensions, not measures
Attempts:
2 left
💡 Hint

Think about user interaction and flexibility.

data_modeling
advanced
2:00remaining
Handling Ties in Top N Parameter Filtering

You use a parameter to show the top N customers by sales. Some customers have the same sales amount causing ties at the cutoff. Which approach ensures all tied customers at the cutoff rank are included?

AUse a fixed filter on sales amount instead of ranking
BUse RANK_DENSE(SUM([Sales])) <= [TopN] to include all tied ranks
CUse INDEX() <= [TopN] which ignores ties
DUse RANK(SUM([Sales])) < [TopN] to exclude ties at cutoff
Attempts:
2 left
💡 Hint

Consider how different ranking functions treat ties.

🔧 Formula Fix
expert
2:00remaining
Debugging a Top N Parameter Calculation Not Filtering Correctly

You created a parameter TopN and a calculated field RANK(SUM([Sales])) <= [TopN] to filter top customers. But the filter shows all customers instead of top N. What is the most likely cause?

AThe data source does not support parameters
BThe parameter <code>TopN</code> is not set to a valid integer value
CThe calculation uses RANK instead of INDEX, causing wrong results
DThe filter is applied before the aggregation, so ranking is not computed correctly
Attempts:
2 left
💡 Hint

Think about when filters and aggregations happen in Tableau.