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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
mb0307
Responsive Resident
Responsive Resident

Rank bottom filter

Hi All,

 

I have created a simple rank measure:

 

RANKX( ALL( CountryTable[Market] ), [Variation] )

 

to show TOP 5 market I am applying visual filter.

 

but how to get BOTTOM 5 based on the visual filter applied to ignore certain markets.

 

Thanks in advance.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @mb0307 ,

 

Please sort by [Variation] in ascending order:

Rank = IF([Variation]<>0 , RANKX(FILTER( ALL( CountryTable[Market] ), [Variation]<>0), [Variation],,ASC,Dense),BLANK())

Then apply the measure to visual-filter pane, condition is <=5 & <> Blank:

Eyelyn9_0-1653983391894.png

Best Regards,
Eyelyn Qin
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

3 REPLIES 3
Anonymous
Not applicable

Hi @mb0307 ,

 

Please sort by [Variation] in ascending order:

Rank = IF([Variation]<>0 , RANKX(FILTER( ALL( CountryTable[Market] ), [Variation]<>0), [Variation],,ASC,Dense),BLANK())

Then apply the measure to visual-filter pane, condition is <=5 & <> Blank:

Eyelyn9_0-1653983391894.png

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

amitchandak
Super User
Super User

@mb0307 , One is create a new Tank and use that in filter

RANKX( ALL( CountryTable[Market] ), [Variation],,asc,dense )

 

or

 

RANKX( ALLSELected( CountryTable[Market] ), [Variation] )

 

or you can use advance -> top N in visual level filter

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak thanks

It did not work.

 

3rd column is Rank.  I want to pick the highlighted 5 countries.    I already have a visual filter to ignore all 0 in middle column.

 

mb0307_0-1653550963921.png

If i am using TOP N because of my remove 0 visual filter, it doesn't show anything as they are hidden. 

 

Any fix please? 

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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