Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
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.
Solved! Go to Solution.
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:
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.
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:
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.
@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
@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.
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?
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
87 | |
81 | |
53 | |
37 | |
35 |