Showing results for 
Search instead for 
Did you mean: 
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?




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



Super User
Super User

Helpful resources

August 2022 update 768x460.jpg

Check it Out!

Click here to learn more about the August 2022 updates!

August 1 episode 9_no_dates 768x460.jpg

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Top Solution Authors
Top Kudoed Authors