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
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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors