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
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
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.