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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
DeBIe
Post Partisan
Post Partisan

Circular dependency

Hey all,

 

I'm trying to wrap my head around this and looked for a solution on the internet, but can't get the right outcome. Can you please help? I illustrated my problem below. In green is the first calculated column that I have added. In Red is the second column that I had, but it tells me I have a circular dependency between the two columns. I found out that PowerBI gives this error because it does not know which column needs to be calculated first. But how to solve it?

 

Extra info: the tables are related to each other via the invoiceID.

 

DeBIe_1-1650441001679.png

 

Thank you for looking into this!

5 REPLIES 5
DeBIe
Post Partisan
Post Partisan

Any other suggestions?

SpartaBI
Community Champion
Community Champion

@DeBIe try:

IsDoubleCheckAndIsUpdatedDetail = 
CALCULATE(    
    IF(DoubleCheck = 1 && IsUpdatedDetail > 0 ,1 ,0) ),
    CROSSFILTER('InvoiceDetail','InvoiceHeader', NONE)
)

Or this:
IsUpdateDetail =
VAR _ID = 'InvoiceHeader'[InvoiceID]
RETURN
CALCULATE(
    SUM(InvoiceDetails[IsUpdated),
    REMOVEFILTERS('InvoiceHeader'),
    'InvoiceDetail'[InvoiceID]) = _ID
)

amitchandak
Super User
Super User

@DeBIe , Are you trying to use columns across tables?

 

refer 4 ways to copy data from one table to another
https://www.youtube.com/watch?v=Wu1mWxR23jU
https://www.youtube.com/watch?v=czNHt7UXIe8

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hey @amitchandak ,

 

I pulled in the sum amount of "IsUpdated" column to my InvoiceHeader table. That works fine. The problem of circular dependency occurs when I create another calculated column after that, which checks if "IsUpdatedDetail"=1 and "DoubleCheck" =1.

It is saying that there a circular dependency between columns "IsUpdatedDetails" and "IsDoubleCheckAndIsUpdatedDetail"

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.