Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi, how to display only top 5 rows when using a table visual
Requirement: Need to Display top 5 by Company&Cat&Country, so i can not use Top 5 from the filter panel, which only looks at one column(Company or Cat or Country). how can i do this.
Row | Company | cat | country | sales |
1 | Apple | CAT 1 | India | 600 |
2 | Amazon | CAT 2 | USA | 550 |
3 | Redhat | CAT 1 | CANADA | 500 |
4 | Microsoft | CAT 3 | CHINA | 450 |
5 | Uber | CAT 1 | UAE | 400 |
6 | Kaiser | CAT 1 | CANADA | 350 |
7 | AT&T | CAT 2 | UAE | 300 |
8 | Redhat | CAT 4 | VA | 250 |
9 | Microsoft | CAT 5 | USA | 200 |
10 | Uber | CAT 6 | UAE | 150 |
11 | Kaiser | CAT 1 | CANADA | 100 |
12 | AT&T | CAT 1 | India | 50 |
13 | AT&T | CAT 2 | CANADA | 30 |
14 | Uber | CAT 2 | CANADA | 20 |
Go into your Filtering pane and use a TopN filter
that will only give me top ten only for that coloum, but need the rank for cardinality
Not understanding rank for cardinality. Are you saying that you want the top 10 for each what? Please provide an example of expected output from the example data provided.
Hi, how to display only top 5 rows when using a table visual
Requirement: Need to Display top 5 by Company&Cat&Country, so i can not use Top 5 from the filter panel, which only looks at one column(Company or Cat or Country). how can i do this.
Row | Company | cat | country | sales |
1 | Apple | CAT 1 | India | 600 |
2 | Amazon | CAT 2 | USA | 550 |
3 | Redhat | CAT 1 | CANADA | 500 |
4 | Microsoft | CAT 3 | CHINA | 450 |
5 | Uber | CAT 1 | UAE | 400 |
6 | Kaiser | CAT 1 | CANADA | 350 |
7 | AT&T | CAT 2 | UAE | 300 |
8 | Redhat | CAT 4 | VA | 250 |
9 | Microsoft | CAT 5 | USA | 200 |
10 | Uber | CAT 6 | UAE | 150 |
11 | Kaiser | CAT 1 | CANADA | 100 |
12 | AT&T | CAT 1 | India | 50 |
13 | AT&T | CAT 2 | CANADA | 30 |
14 | Uber | CAT 2 | CANADA | 20 |
try this
Rank Measure = RANKX ( summerize (table, table[company], table[cat]
table[couNTRY]
), [Sales measure], , DESC, DENSE )
Thanks & regards,
Pravin Wattamwar
www.linkedin.com/in/pravin-p-wattamwar
If I resolve your problem Mark it as a solution and give kudos.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
19 | |
7 | |
6 | |
5 | |
5 |
User | Count |
---|---|
24 | |
10 | |
10 | |
9 | |
6 |