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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. 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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.