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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
eryn
Microsoft Employee
Microsoft Employee

Default display 10 values after choosing one slicer

Hi community,

 

I have two slicers for my line chart, e.g. NameSpace and MetricsName. The dataset is large, so for certain NameSpace, might have hundreds of MetricsName. I am using a drop down slicer.

 

So it is possible when I select a NameSpace, (while not MetricsName yet), the chart shows only 10 Metrics by default, instead of all metrics in this namespace?

 

Noted that I must do this in Direct Query Mode.

 

Thanks!

 

1 ACCEPTED SOLUTION

One easy way, you could add a calculated column to your table:

 

FilterColumn = RANKX('Table','Table'[NumericColumn],,DESC,Skip)

 

 

Then add FilterColumn to a slicer and change it to "Less than or equal to" 

 

 

If you want just 10 or all, you can then make a new table (Home > Enter Data) with a two columns

NumbersColumn which just contains the numbers 1 through 10.
FilteredColumn which just contains the words "Top 10" in every row.
Add a relationship from the to NumbersColumn in the new table to FilterColumn in original table.

Then add the NumbersColumn column to a slicer as a list. You can toggle Top 10on or off



Did I answer your question? Mark my post as a solution! Proud to be a Super User!


Connect with me!
Stay up to date on  
Read my blogs on  



View solution in original post

5 REPLIES 5
v-diye-msft
Community Support
Community Support

Hi @eryn 

 

If the above posts help, please kindly mark it as a answer to help others find it more quickly. thanks!

If not, please kindly elaborate more.

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
SteveCampbell
Memorable Member
Memorable Member

I think you are after a top N filter:

 

https://www.tutorialgateway.org/power-bi-top-10-filters/



Did I answer your question? Mark my post as a solution! Proud to be a Super User!


Connect with me!
Stay up to date on  
Read my blogs on  



Hi Steve,

 

Thanks! it's great to know this filter functionality.

 

But I only want this to be the by-default display, and if user want to choose more, they can go ahead. 

As I tried the Top N, the filter will locked down the number of MetricName to 10 (might be actuallty 100 tho), so user cannot choose others any more.

One easy way, you could add a calculated column to your table:

 

FilterColumn = RANKX('Table','Table'[NumericColumn],,DESC,Skip)

 

 

Then add FilterColumn to a slicer and change it to "Less than or equal to" 

 

 

If you want just 10 or all, you can then make a new table (Home > Enter Data) with a two columns

NumbersColumn which just contains the numbers 1 through 10.
FilteredColumn which just contains the words "Top 10" in every row.
Add a relationship from the to NumbersColumn in the new table to FilterColumn in original table.

Then add the NumbersColumn column to a slicer as a list. You can toggle Top 10on or off



Did I answer your question? Mark my post as a solution! Proud to be a Super User!


Connect with me!
Stay up to date on  
Read my blogs on  



Thanks Steve!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.

Top Solution Authors
Top Kudoed Authors