Question
How to group by the top N positions using Tableau Desktop. For example, when entering "5" in the parameter , sort the records by Sales and group by "5" records based on Sales ranking.
Default result:
Desired result with 5 selected for the parameter: