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 !! Connect on Linkedin

Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
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
Power BI October Update 2021.jpg

Power BI Release

Click here to read more about the October 2021 Release!

Microsoft Ignite 768x460.png

Find your focus

Explore the latest tools,training sessions,technical expertise, networking and more.

Power BI Womens Summit 2021 768 x460.jpg

Interviews, learning sessions, allies, and more!

#PowerBIWomenSummit

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!