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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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