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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

How to Filter Rankx Function

Hi all

 

I have a measure like that  (create rank number to customer with their overdue)
Measure = IF(HASONEFILTER(Overdue[Customer Text]);RANKX(ALLSELECTED(Overdue[Customer Text]);[Local_net_Overdue];;DESC;Dense))

I have a date dimension table to make filter this visual. Theese two tables (Overdue and Date tables) are joined.

 

I can make filter when i use slicer filter visual with date table but i don't want to make filter with slicer i want to embedded code to measure then i will cancel interaction between slicer and visual (which measure used). 

I think need something like 'selectedvalue' function. I think i need a code like that --> FILTER(dim_date;SELECTEDVALUE(dim_date[Month])=dim_date[Month]) but i don't know how can i combine this code with my measure. 

I tried to explain detailed. if it's not enough i can create example data set and pbix.

I hope somebody can help me immediately

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@Anonymous ,

 

You may try CALCULATETABLE in RANKX.

Community Support Team _ Sam Zha
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

2 REPLIES 2
v-chuncz-msft
Community Support
Community Support

@Anonymous ,

 

You may try CALCULATETABLE in RANKX.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

any ideas ?

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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 Kudoed Authors