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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
DataGeek333
New Member

A circular dependency was detected - when opening a file

Hi Community,

 

I have encountered this circular dependency issue today. However, the weird things are:

  • This error message was popped up when I opened the Power BI file, insteading of showing up when I was editing a DAX;
  • I haven't made any change to the file since last month, and everything was fine last month;
  • When I opened the archived historical file, this error also popped up.

The message reads: A circular dependency was detected: tmp_SPTR[tmp_SPTR-7c6f6c62-c1de-4a73-825c-0f6e3297bf78], 2ee4a1c2-ef58-4bf5-a1c2-ac2c385c618e, tbl_Perf_TR[Code], tbl_Perf_TR[tbl_Perf_TR-59430534-25a5-4816-bb56-69d94ffd8650], tmp_SPTR[CodeBench], tmp_SPTR[tmp_SPTR-7c6f6c62-c1de-4a73-825c-0f6e3297bf78]. 

 

Can you please have a look into this?

 

Many thanks.

1 ACCEPTED SOLUTION

adding the following environment variable: "PBI_ASEngineConfig_DAX_SummarizeColumnsSelfValue" set to "0" is also a workaround for this (at least for me)

View solution in original post

10 REPLIES 10
DataGeek333
New Member

For y'all have the same issue, a temp solution is to download an older version Power BI, which is the Feb 2024 version from here: https://learn.microsoft.com/en-us/power-bi/fundamentals/desktop-latest-update-archive?tabs=powerbi-d...

At least it will stop showing the circular dependency error window when you open the pbix file.

adding the following environment variable: "PBI_ASEngineConfig_DAX_SummarizeColumnsSelfValue" set to "0" is also a workaround for this (at least for me)

Hi, how did you learn of its existence?

v-yaningy-msft
Community Support
Community Support

Hi, @DataGeek333 

According to your description, your pbix file has a circular dependency error, can you provide the pbix file without sensitive data for us to test (if you can, please use Google Drive to share the link that does not require the viewer to be logged in to a Google account), here is the link to avoid generating the circular dependency error, you can refer to it.
Avoiding circular dependency errors in DAX - SQLBI

Best Regards,
Yang
Community Support Team



Hi Yang,

 

Due to the complex build of the pbix file, I cannot simply remove the sentitive data to share it publicly. 

 

However, when I rolled back to the Feb 2024 version, this circular dependency error then no longer shpwing up. Guessing it might be something in the Mar update that triggered this issue. Can you provide this feedback to the dev team?

 

Kindly,

This is a breaking change in the latest version of PowerBI Desktop.

This happens if, in the model you first use a column from particular table to create a calculated table using SUMMARIZECOLUMNS like this:
SUMMARIZECOLUMNS(
Dates[Month Year],
'Budget Names'[Budget Name Actual],
"Exchange", [Actual Value]
)

And then create a relationship between those tables/columns. Like in our case we are then creating relationships to the dates table.

The matter is, this used to work. We have several PBIX files that worked without a problem and now suddenly have Circrular Dependency in them if you open in latest PBI Desktop

Hi, @jpierzchala 

I appreciate the feedback, what was the source you got? Since my work environment has not previously used SUMMARIZECOLUMNS to create a pbix file, I cannot verify if this is an issue. can you provide the pbix file without sensitive data for our testing.

Best Regards,
Yang
Community Support Team

SteDie
Regular Visitor

Hello,

 

i am experiencing the same Problem, good to know that i am not the only one. Made no Changes, but PowerBI Desktop updated to a new Version.

 

this_doesnt_work_anymore =
    ADDMISSINGITEMS(
        TableA[xxx],
        TableB[xxx],
        TableC[xxx],
        SUMMARIZECOLUMNS(
            TableA[xxx],
            TableB[xxx],
            TableC[xxx],
            TableD,
            "IST", sum(TableD[xxx]),
            "SOLL", sum(TableD[xxx])
        ),
        TableA[xxx],
        TableB[xxx],
        TableC[xxx],
        TableA,
        TableB,
        TableC
    )
 
are you doing something similar in your case?
 
Kind Regards

Hi, @SteDie 

For a quicker solution to your problem, you can reopen a thread and others will see your problem.

Best Regards,
Yang
Community Support Team

Yes, I have a similar format of the DAX like what you have here, and it has been reported for the circular dependency. 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.