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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
varyar
Microsoft Employee
Microsoft Employee

circular dependency was detected

I have 2 columns in the SalesData table

 

SalesMode
Sales Amount


Formula:
XYZ = IF(AND(SalesData[SalesMode] = "Online", SalesData[SalesAmount] <= 600), "Met", "Not Met")

 

Error:
A circular dependency was detected: SalesData[SalesAmount], SalesData[XYZ], SalesData[SalesAmount].

 

Please help, Thank you

1 ACCEPTED SOLUTION
audreygerred
Super User
Super User

I made a table with just the two columns and added in some dummy data:

audreygerred_0-1715793356402.png

I was able to add a calculated column using the same DAX you had and didn't get a circular reference error, however, I would recommend adding columns in Power Query instead of calculated columns with DAX.

audreygerred_1-1715793437716.png

 

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

2 REPLIES 2
v-shex-msft
Community Support
Community Support

Hi @audreygerred ,

Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.

If these also don't help, please share more detailed information and description to help us clarify your scenario to test.

How to Get Your Question Answered Quickly 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
audreygerred
Super User
Super User

I made a table with just the two columns and added in some dummy data:

audreygerred_0-1715793356402.png

I was able to add a calculated column using the same DAX you had and didn't get a circular reference error, however, I would recommend adding columns in Power Query instead of calculated columns with DAX.

audreygerred_1-1715793437716.png

 

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





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!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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