Complete the code to create a Top N filter using a parameter in Tableau.
IF RANK_UNIQUE(SUM([Sales])) <= [1] THEN 'Top N' ELSE 'Others' END
The parameter [Top N Parameter] controls how many top items to show based on sales rank.
Complete the code to rank products by sales in descending order for a Top N filter.
RANK_UNIQUE(SUM([Sales]), [1])Use DESC to rank products from highest to lowest sales for Top N filtering.
Fix the error in the calculated field to correctly filter Top N customers by sales.
IF RANK_UNIQUE(SUM([Sales])) [1] [Top N Parameter] THEN 'Top Customers' ELSE 'Others' END
The condition should be 'less than or equal to' the parameter to include top N customers.
Fill both blanks to create a Top N filter that ranks by sales and filters accordingly.
IF RANK_UNIQUE(SUM([Sales]), [1]) [2] [Top N Parameter] THEN 'Top' ELSE 'Other' END
Rank in descending order and filter ranks less than or equal to the parameter for Top N.
Fill all three blanks to create a Top N filter that ranks products by sales descending and filters top N.
IF RANK_UNIQUE(SUM([1]), [2]) [3] [Top N Parameter] THEN 'Top Products' ELSE 'Others' END
Sum sales, rank descending, and filter ranks less than or equal to the parameter for Top N products.