Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
yjetti_gps
Frequent Visitor

Display only top 5 rows when using a table visual

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.

 

RowCompanycatcountrysales
1AppleCAT 1India600
2AmazonCAT 2USA550
3RedhatCAT 1CANADA500
4MicrosoftCAT 3CHINA450
5UberCAT 1UAE400
6KaiserCAT 1CANADA350
7AT&TCAT 2UAE300
8RedhatCAT 4VA250
9MicrosoftCAT 5USA200
10UberCAT 6UAE150
11KaiserCAT 1CANADA100
12AT&TCAT 1India50
13AT&TCAT 2CANADA30
14UberCAT 2CANADA20
5 REPLIES 5
Greg_Deckler
Community Champion
Community Champion

Go into your Filtering pane and use a TopN filter



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

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.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

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.

 

RowCompanycatcountrysales
1AppleCAT 1India600
2AmazonCAT 2USA550
3RedhatCAT 1CANADA500
4MicrosoftCAT 3CHINA450
5UberCAT 1UAE400
6KaiserCAT 1CANADA350
7AT&TCAT 2UAE300
8RedhatCAT 4VA250
9MicrosoftCAT 5USA200
10UberCAT 6UAE150
11KaiserCAT 1CANADA100
12AT&TCAT 1India50
13AT&TCAT 2CANADA30
14UberCAT 2CANADA20
Anonymous
Not applicable

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. 

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.