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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
CZech
Regular Visitor

Issues with RANKX DAX function

Hi everyone,

 

We are using the following RANKX function to determine ranks of a measure (Sales £ vs LY)  by attributes of another table/dimension called Product in this case.
 
TopBrandRank = RANKX(ALLSELECTED('Product'), [Sales £ vs LY],,DESC) PowerBI Rankx Issue.png
 
The above solution/DAX expression used to work (and still works on a couple of pages) but we have experienced issues with it on other pages. (All within one pbix file) As displayed and reproduced in the screenshot above, this function only seems to work intermittently.
 
We are using this DAX function to determine for example top ranked brands and display them on dashboards. The impact therefore is that if the function stops working and we are filtering on a top rank (i.e. TopBrandRank = 1) and the top rank is not populated, the visuals go blank. As this happens intermittently, we cannot foresee on which dashboard pages/visual it is going to happen and therefore makes some pages unusable.
 
Thank you all for your help in advance.
 
Christian
 
 
1 REPLY 1
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @CZech,

 

As this is an intermittently problem in your scenario, I was not able to reproduce it when using RANKX function in my report. Maybe you could try to re-create the measure and test again. Besides, you can update your desktop to latest version for a test.

 

Regards,

Yuliana Gu 

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.