Skip to main content

Power BI

Merged

Top N Filters

Vote (1705) Share
Power BI Ideas Admin's profile image

Power BI Ideas Admin on 03 Oct 2014 07:12:28

Create a filter that allows me to say 'Show the top N categories by value', e.g. 'Top 5 countries by sales'

Administrator on 14 Apr 2021 09:53:26

I'm very pleased to say we've just released the ability to add TopN filters to your visuals in our October update. More details here: https://powerbi.microsoft.com/en-us/blog/power-bi-desktop-october-feature-summary/#analytics Please keep submitting ideas and suggestions for other things we can do in this area!

Comments (163)
Power BI Ideas Admin's profile image Profile Picture

fc69fb8d 22d0-4a99-8bb2-062a06795188 on 05 Jul 2020 22:03:21

RE: Top N Filters

We should have an ability to filter dataset on the report to show only for example top 5 records. In our scenario where we want to show top 5 queries sorted by execution time, we are able to prepare a table visualization, which shows all queries and their execution time, but not finding an option to filter top 5 queries based on execution time.

Power BI Ideas Admin's profile image Profile Picture

d0aca558 5e84-498a-9cd8-6d63f1fe0aea on 05 Jul 2020 22:01:37

RE: Top N Filters

"Top 10" is so easy rather than creating new Measure = IF ( HASONEVALUE( .. ), RANKX( ALL (...) , CALCUATE ( ... ) and Filter.

Power BI Ideas Admin's profile image Profile Picture

1f53cf09 b013-48cd-a049-9ae42db2e563 on 05 Jul 2020 22:01:09

RE: Top N Filters

You can do this already with RANKX () function. Atleast I have used this.