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




Try category or sub-category rank

For Rank Refer these links


New Power BI Features
Field Parameters :
Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin !! Proud to be a Super User!
Want To Learn Power BI
Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
!! Subscribe to my youtube Channel !!

Helpful resources

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.

Power BI Dev Camp Session 23 768x460.jpg

Check it Out!

Mark your calendars and join us on Thursday, June 30 at 11a PDT for a great session with Ted Pattison!

June 20 episode 7 with aka link 768x460.jpg

The Power BI Community Show

Join us on June 20 at 11 am PDT when Kim Manis shares the latest on Azure Synapse analytics, the Microsoft Intelligent Data Platform, and notable Power BI Updates from Microsoft Build 2022.

Top Solution Authors
Top Kudoed Authors