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?
RANK(SUM([Sales])) <= [TopN]
Think about how ranking works and how to compare it with the parameter value.
The RANK(SUM([Sales])) <= [TopN] expression ranks customers by sales and keeps only those with rank less than or equal to the parameter value.
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?
Consider which chart type clearly shows ranking and can be filtered by top N.
A bar chart with a parameter control allows users to dynamically filter and see the top N products clearly ranked by sales.
What is the main advantage of using a parameter to control the top N items displayed instead of a fixed filter in Tableau?
Think about user interaction and flexibility.
Parameters let users choose the number of top items dynamically, making dashboards interactive without needing to edit filters manually.
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?
Consider how different ranking functions treat ties.
RANK_DENSE assigns the same rank to tied values and does not skip ranks, so using it with <= [TopN] includes all tied customers at the cutoff.
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?
Think about when filters and aggregations happen in Tableau.
Filters applied before aggregation do not have access to aggregated ranks, so the filter does not limit the data as expected. The filter should be applied as a table calculation or after aggregation.