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
Anonymous
Not applicable

Create filter/slicer by a rank

Hey there

 

I was wondering if we could use a dax ranking to create a slicer or use it as a filter. 

 

Context: I need to be able to select which value of the rank I want to slice a visual. I know we can create a measure and use it in card for a selected value in ranking (for intance, the second or the fourth one), but I need to use it as a filter/slicer in another visual.

 

Is is posible?

 

Thanks for your help!

 

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , You need to create an independent table and that you have use to filter RANK

 

Geography Rank = RANKX(all(Geography[City]),[Sales])

 

Assume you have independent table Rankno with column rankno

Rank Selected = sumx(filter(VALUES(Geography[City]),[Geography Rank]=selectedvalue(Rankno[Rankno ])),[Sales] )

 

or

 

Rank Selected = sumx(filter(VALUES(Geography[City]),[Geography Rank] in values(Rankno[Rankno ])),[Sales] )

 

Very similar concept to dynamic segmentation. Here each value is bucket (= not between)

https://www.youtube.com/watch?v=CuczXPj0N-k

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

View solution in original post

4 REPLIES 4
v-henryk-mstf
Community Support
Community Support

Hi @Anonymous ,

 

First of all, you should know that measure doesn't support Slicer. If you want to use DAX to create rank functions, you can use calculated column, which supports slicer/filter.

 

Here is the sample pbix file.

 

Best Regards,
Henry

 

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

Anonymous
Not applicable

Hey!

 

I have a rank based on an average of our hourly productivity results, and I need it to be used as a slicer/filter for visuals other than a card. My expectation is to be able to select the number 3, for instance, in my slicer and all visuals in the dashboard would be filtered as the third in the ranking.

 

Am I clear enough? I could try to simulate it, if it helps.

Ashish_Mathur
Super User
Super User

Hi,

Share some data and show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
amitchandak
Super User
Super User

@Anonymous , You need to create an independent table and that you have use to filter RANK

 

Geography Rank = RANKX(all(Geography[City]),[Sales])

 

Assume you have independent table Rankno with column rankno

Rank Selected = sumx(filter(VALUES(Geography[City]),[Geography Rank]=selectedvalue(Rankno[Rankno ])),[Sales] )

 

or

 

Rank Selected = sumx(filter(VALUES(Geography[City]),[Geography Rank] in values(Rankno[Rankno ])),[Sales] )

 

Very similar concept to dynamic segmentation. Here each value is bucket (= not between)

https://www.youtube.com/watch?v=CuczXPj0N-k

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

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