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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

TopN

Hi,

I am trying to build a table that will only bring back the top 20 seller and another that brings back the bottom 20 sellers from a data set. I thought i had achieved this with using the TopN filter. However when data sets change the number of rows brought back is random and never sticks to the 20 mark that i want it to do. Can anyone point me in the right direction of what i am doing wrong.

 

Thanks,

1 ACCEPTED SOLUTION
judspud
Solution Supplier
Solution Supplier

Hi @Anonymous,

 

You could add 2 columns to the dataset. One using RANKX ascending and one using RANKX descending. 

Then use the additonal columns to filter the visuals to only show ranks of 20 or less.

 

Hope this helps.

 

Thanks,

George

View solution in original post

1 REPLY 1
judspud
Solution Supplier
Solution Supplier

Hi @Anonymous,

 

You could add 2 columns to the dataset. One using RANKX ascending and one using RANKX descending. 

Then use the additonal columns to filter the visuals to only show ranks of 20 or less.

 

Hope this helps.

 

Thanks,

George

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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