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!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
Hi All,
I have a simple query my RANKX is not working as expected can someone please explain me whats wrong? when i try to use ALL() function with only table name giving wrong result as below
My Measures
however, when i try to give ALL() function with table[column name] its working fine how ?? shouldnt that yeild correct result irrespective of table name or column name??
Regards,
Husna
Hi
Could you tell me if your problem has been solved?
If it is, kindly Accept it as the solution. More people will benefit from it.
Or you are still confused about it, please provide me with your original data and relationship between tables.
https://www.sqlbi.com/articles/use-of-rankx-in-power-bi-measures/
Best Regards,
Stephen Tao
@Anonymous , rank is context-sensitive. In the first case, the rank would be calculated at the lowest level of the calendar each year.
Refer this to get how Rank works
https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.