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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

RANKX Circular Reference Error

I am getting a circular reference error in my RANKX column

AreaCluster Rank =
RANKX(
    FILTER(
        ALL('Table'),
        'Table'[Area] = EARLIER('Table'[Area])
    ),
    [Table Overall Score],, DESC, Skip)
 
[Table Overall Score] measure is basically a sum of other columns (i.e. the overall score)

I am not sure what the problem is. I checked stackedoverflow and this forum (like this one Solved: RANKX Circular Reference Help - Microsoft Fabric Community and Solved: RANKX with groups - Microsoft Fabric Community), and my formula is aligned with the accepted answers (I also tried simply using 'Table' instead of All('Table'
) to be sure). I have another data table for a different page that uses the exact same RANKX formula and it succeeds without error. Don't understand why this particular data and RANKX doesn't work.

Is it something in my data? Is it because of the PowerBI November'23 update? 

Please help, I am not sure what is causing this, much less the solution
2 REPLIES 2
HotChilli
Super User
Super User

"[Table Overall Score] measure is basically "<-- this will be the problem.  It is not a good idea to use measures in calculated column definitions.  Measures are dynamic and for visuals. They can give results in columns but not a good idea.

Ritaf1983
Super User
Super User

Hi @Anonymous 

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors