cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
shubhy04
Helper I
Helper I

Create a top/bottom10 filter that displays the top/bottom items

Hi, 

 

I'm looking to create a bar graph that displays the top/bottom 10 items sorted on a metric (lets say impressions) based on a dropdown filter selection. Something like this: 

 

shubhy04_1-1613417943142.png

 

Any help with this will be really appreciated!! 

 

Thanks

Shubham

1 ACCEPTED SOLUTION
v-easonf-msft
Community Support
Community Support

Hi, @shubhy04 

As mentioned by @lbendlin , visual filter pane would be a better choice if you dont want to calculate any measure.

56.png

57.png

 

 

You can check if these tutorials could help.

video_How to Create Power BI TOP N Report (Variable TOP N Filter) 

video_How to Create Power BI TOP N Report (Power BI Top 10 / Top N Filter) 

https://www.youtube.com/watch?v=nVvlEHKr_0o 

 

 

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

4 REPLIES 4
v-easonf-msft
Community Support
Community Support

Hi, @shubhy04 

As mentioned by @lbendlin , visual filter pane would be a better choice if you dont want to calculate any measure.

56.png

57.png

 

 

You can check if these tutorials could help.

video_How to Create Power BI TOP N Report (Variable TOP N Filter) 

video_How to Create Power BI TOP N Report (Power BI Top 10 / Top N Filter) 

https://www.youtube.com/watch?v=nVvlEHKr_0o 

 

 

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

lbendlin
Super User
Super User

Teach your users how to use the filter pane. It gives you that functionality for free.

amitchandak
Super User
Super User

@shubhy04 , Create two-measure which select top 10 or bottom 10

 

Top 10 City Rank = CALCULATE([Sales],TOPN(10,all(Geography[City]),[Sales],DESC),VALUES(Geography[City Id]))

Bottom 10 City Rank = CALCULATE([Sales],TOPN(10,all(Geography[City]),[Sales],ASC),VALUES(Geography[City Id]))

 

Create an independent table with Top 10 and Bottom 10 values and do like what is done in measure slicers

https://community.powerbi.com/t5/Desktop/Slicer-MTD-QTD-YTD-to-filter-dates-using-the-slicer/td-p/50...
https://radacad.com/change-the-column-or-measure-value-in-a-power-bi-visual-by-selection-of-the-slic...



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

Hi @amitchandak , i tried but the very problem i'm facing is that i dont need to calculate any measure (in your example aggreagated [Sales] as a separate measure) since each record in my dataset is a unique record with a column containing metric value. I want to see the top/bottom 10 posts based on this column value and also work dynamically to handle any external filters. 

 

 

Thanks

Shubham

Helpful resources

Announcements
PBI_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Teds Dev Camp Oct. 2021 768x460.jpg

Power BI Dev Camp - October 28th, 2021

Mark your calendars and join us for our next Power BI Dev Camp!