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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
bhmiller89
Helper V
Helper V

Circular Dependency Issue

I have a dataset with many tables. I used LOOKUPVALUE in a calculated column to get the column "Total Trade" into Table1

 

I need to calculate another calculated column called "Gross Profit" that uses "Total Trade" in the formula. however, I get "a circular dependency was detected: Table1[Total Trade], Table1[Gross Profit], Table1[Total Trade]

 

It needs to be a column and not a measure 

 

Any help is appreciated 

4 REPLIES 4
Greg_Deckler
Community Champion
Community Champion

Can you post your formulas and sample data as text? Circular dependency issues are notoriously thorny to troubleshoot.


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler  There is not a direct relationship between Table1 and Table2 so when I was calculating "Total Trade" in Table1 I used: 

 

Total Trade = Table1[VALUE1]+Table1[VALUE2]+ LOOKUPVALUE('Table3'[ Rate], 'Table3'[Key], Table1[Key])

 

Now I am trying to calculate 


Gross Profit = Table1[Value5]-Table1[Total Trade]- RELATED('Table4'[Value8])

 

that's where I get the error. Because I'm trying to use Total Trade in a calculated column and Total Trade is already using LOOKUPVALue.

 

Does that help?

Hi @bhmiller89 

Could you show what are the relationships among these tables?

I need more information to rproduce this problem.

 

Best Regards

Maggie

Yeah, but the circular dependency is not obvious to me. Are Table4 and Table3 related to one another? And is Gross Profit, what table is that in, Table1 or Table3 or ?


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.