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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.