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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
krichmond
Helper IV
Helper IV

Help With "A Circular Dependency Was Detected" Error

I have a calculated column with this formula and it works fine:

Uninsured Marketing Designator = IF(LEFT(mv_perfex[clientgroup], 2) = "UI", "True", "False")
 
I have another calculated column with this formula and it doesn't work:
Uninsured Marketing Quantity = IF ([Uninsured Marketing Designator]="True", mv_perfex[Marketing Quantity])
 
I am getting this error message:
<pi>A circular dependency was detected: mv_perfex[Uninsured Marketing Quantity], mv_perfex[Actual Premium With Time Designator], mv_perfex[Uninsured Marketing Quantity].</pi>
 
Any idea what I am doing wrong?
1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @krichmond 

 

You can try the following methods.

Uninsured Marketing Designator = IF(LEFT(mv_perfex[clientgroup], 2) = "UI", 1, 0)
Uninsured Marketing Quantity = IF ([Uninsured Marketing Designator]=1, mv_perfex[Marketing Quantity])

vzhangti_0-1668155581137.png

Also try:

Uninsured Marketing Designator = IF(LEFT(mv_perfex[clientgroup], 2) = "UI", TRUE(), FALSE())
Uninsured Marketing Quantity = IF ([Uninsured Marketing Designator]=TRUE(), mv_perfex[Marketing Quantity])

vzhangti_1-1668155674888.png

Is this the result you expect?

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-zhangti
Community Support
Community Support

Hi, @krichmond 

 

You can try the following methods.

Uninsured Marketing Designator = IF(LEFT(mv_perfex[clientgroup], 2) = "UI", 1, 0)
Uninsured Marketing Quantity = IF ([Uninsured Marketing Designator]=1, mv_perfex[Marketing Quantity])

vzhangti_0-1668155581137.png

Also try:

Uninsured Marketing Designator = IF(LEFT(mv_perfex[clientgroup], 2) = "UI", TRUE(), FALSE())
Uninsured Marketing Quantity = IF ([Uninsured Marketing Designator]=TRUE(), mv_perfex[Marketing Quantity])

vzhangti_1-1668155674888.png

Is this the result you expect?

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@krichmond , seem like Uninsured Marketing Quantity is used in columns that have used to generate this , indirectly

 

refer: https://www.sqlbi.com/articles/avoiding-circular-dependency-errors-in-dax/

 

If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

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

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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