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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Calculate ranking within context but allowing for row filtering without recalculation

Hello, I have the following table visual below and I want to slice it by Region, Industry and a range of dates that are related to each client in a table visual without Power BI recalculating the rankings, the fields ranking sales and ranking amount are dax measures:

Client ListRanking SalesRanking Amount
Client1191
Client2202
Client3213
Client4224
Client5235
Client6246
Client7257
Client8268
Client919
Client10210
Client11311
Client12412
Client13513
Client14614
Client15715
Client16816
Client17917
Client181018
Client191119
Client201220
Client211321
Client221422
Client231523
Client241624
Client251725
Client261826


So for example I want to slice so the table only returns client2 and two as follows: 

Client ListRanking SalesRanking Amount
Client2202
Client3213

 

Currenly the table is returning: 

Client ListRanking SalesRanking Amount
Client211
Client322

Is this possible to keep the desired result being able to slice using the range of dates, region and industry and keeping the ranking?
I don't want to hard code the rankings because the user may change the range of dates and we want it to recalculate but I want to be able to filter by client list column. What Dax functions can I use for the Rankx to be able to filter?

 

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

I do not know how you used RANX DAX function in the measure. I assume you used ALLSELECTED DAX function.

If my assumption is correct, please try using ALL DAX function.

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Thank you very much, you are right, I was using Allselected

Jihwan_Kim
Super User
Super User

Hi,

I do not know how you used RANX DAX function in the measure. I assume you used ALLSELECTED DAX function.

If my assumption is correct, please try using ALL DAX function.

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.