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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
rincewind
Frequent Visitor

How to add Multiple TopN to a single visual? (Either using a filter or the function)

Here is the scenario

 

There are Fruits and Sub fruits being collected from various farms and this needs to be visualized in a table.  Below is a sample of the table.

 

FruitFarmValueSub Fruit Type
Fruit 1Farm 1182Fruit 1 Sub 4
Fruit 1Farm 2825Fruit 1 Sub 3
Fruit 1Farm 3520Fruit 1 Sub 2
Fruit 1Farm 4634Fruit 1 Sub 1
Fruit 2Farm 131Fruit 2 Sub 4
Fruit 2Farm 2311Fruit 2 Sub 3
Fruit 2Farm 3144Fruit 2 Sub 2
Fruit 2Farm 447Fruit 2 Sub 1
Fruit 3Farm 1870Fruit 3 Sub 4
Fruit 3Farm 2223Fruit 3 Sub 3
Fruit 3Farm 3736Fruit 3 Sub 2
Fruit 3Farm 4598Fruit 3 Sub 1
Fruit 4Farm 126Fruit 4 Sub 4
Fruit 4Farm 2729Fruit 4 Sub 3
Fruit 4Farm 3197Fruit 4 Sub 2
Fruit 4Farm 4384Fruit 4 Sub 1
Fruit 5Farm 1740Fruit 5 Sub 4
Fruit 5Farm 2475Fruit 5 Sub 3
Fruit 5Farm 3970Fruit 5 Sub 2
Fruit 5Farm 4790Fruit 5 Sub 1
Fruit 6Farm 1808Fruit 6 Sub 4
Fruit 6Farm 2136Fruit 6 Sub 3
Fruit 6Farm 3630Fruit 6 Sub 2
Fruit 6Farm 4343Fruit 6 Sub 1
Fruit 7Farm 1935Fruit 7 Sub 4
Fruit 7Farm 2525Fruit 7 Sub 3
Fruit 7Farm 3497Fruit 7 Sub 2

 

 

Using a matrix, I want to visualize the top 5 fruit types based on values and then the top 2 sub fruit types. I can get the top 5 Fruit types to be visualized by adding a top N filter to the visual but cant add another Top N filter to the top 2 Fruit Sub Type. How do I proceed?

Capture2.JPG

 

 

I would link the file for everyone to see but i dont know how to upload a pbix file here

 

 

1 REPLY 1
amitchandak
Super User
Super User

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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