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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
AbhishekAejae
Regular Visitor

Help needed regarding Nested Filter in Power BI

I am looking for help with nested filtering in Power BI and below is my situation,

 

I have a country column and Device name column in my dataset. I want to first filter out the countries having greater than 10 devices count and among these filtered countries, I want to then filter out bottom 20 countries which should be dynamic and should be affected with the slicers placed.

4 REPLIES 4
Anonymous
Not applicable

Hi @AbhishekAejae ,

I create a table as you mentioned.

vyilongmsft_0-1725429746269.png

I think you can create two new tables.

Table 2 = SUMMARIZE('Table','Table'[Country],"Count Device",COUNTROWS('Table'))

vyilongmsft_1-1725430434858.png

Table 3 = TOPN(5,'Table 2','Table 2'[Count Device],DESC)

vyilongmsft_2-1725430863185.png

Then you can create another table and it will give you what you want.

Table 4 = TOPN(3,'Table 3','Table 3'[Count Device],ASC)

vyilongmsft_3-1725430938996.png

 

 

 

Best Regards

Yilong Zhou

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @Anonymous  - Unfortunately, the given solution is not working for me. Thank you for your help!

Anonymous
Not applicable

Hi @AbhishekAejae ,

Can you please give me specifically is example data? After all, I don't know what the specific data is in the language you have elaborated.

 

 

Best Regards

Yilong Zhou

 

Selva-Salimi
Super User
Super User

based on my latest knowledge you cannot use included-slicer in power bi. you should download visuals like chiclet slicer and .... because you need to add some measures to the filter pane which can filter based on your preference. the measures you should write is...
measure :=
var tbl1 = filter(summarize(mytable,country,"device_count", count(device)),device_count >10)
var tbl2= rankx(tbl1,device_count,,asc)
return
if( filter(tbl2,device_count<20),1,0)

add this measure to filter pane and set it to filter for 1!

 

If this post helps, then i would appreciate a thumbs up 👍 and mark it as the solution to help the other members find it more quickly. 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors