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
Anonymous
Not applicable

A circular dependency was detected while creating two calculated column

VaddeGogula_0-1640243678485.png

Getting Circuar dependency error as show in screenshot

this what the requirement to calculate focus and non focus categories based on the conditions.
I am using only one table in the enitre report.
I am using Swicth() as a dax function.

Not able to create this as a measure because some dimension columns are used to compare and map focus and non focus category.

Note - Selection Fiscal&Period, FY21 Vs FY22,CTD act Vs CTD ODE,FY22 POV CCI% are calcualted measures

Focus Accounts Category_Cal Column = SWITCH(TRUE(),
(FA_Analysis_Data[Contract] = "#"),"Non Focus",
(FA_Analysis_Data[EAC_Rev] = 0 || FA_Analysis_Data[EAC_Rev]= BLANK()), "Non Focus",
(FA_Analysis_Data[Valid_from]> FA_Analysis_Data[Selection Fiscal&Period]),"Non Focus",
(FA_Analysis_Data[EAC_Rev]<1), "Non Focus",
(FA_Analysis_Data[Valid_To]<=FA_Analysis_Data[Selection Fiscal&Period]),"Non Focus",
(FA_Analysis_Data[Valid_from]> FA_Analysis_Data[Selection Fiscal&Period]),"Non Focus",
(FA_Analysis_Data[Valid_To]<=FA_Analysis_Data[Selection Fiscal&Period]),"Non Focus",
FA_Analysis_Data[FY21 Vs FY22]<0 &&([FY22 POV CCI%]>=0.3),"Non Focus",
FA_Analysis_Data[CTD act Vs CTD ODE]>0 && [FY21 Vs FY22]>0 && [FY22 POV CCI%]>0.3,"Non Focus",
FA_Analysis_Data[CTD act Vs CTD ODE]<0 &&[FY21 Vs FY22]>0 && [FY22 POV CCI%]>0.3,"Non Focus",
"Focus")

Any sugegstions how to resolve this error ?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Yes,there are 2 calculated columns(A and B) which are created with  measures and calculated columns.

now the requirement is, from A and B need to create another calculated columns C and D.
calculated columns A and B are working fine but not able to create C and D.

So, when i am trying to create C and D i am getting Circular Dependency error.

Please suggest solution for this.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Yes,there are 2 calculated columns(A and B) which are created with  measures and calculated columns.

now the requirement is, from A and B need to create another calculated columns C and D.
calculated columns A and B are working fine but not able to create C and D.

So, when i am trying to create C and D i am getting Circular Dependency error.

Please suggest solution for this.

@Anonymous , if measures are used with the hope that calculated columns will use slicer value, then they will not. So best is to reconsider those calculations to use columns.  and then create a new column on top of those columns

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
amitchandak
Super User
Super User

@Anonymous , Can you a sample pbix after removing sensitive data.

 

One of the column used here is using this column or something like that

or these are measures [FY22 POV CCI%] , you can not use measure in a column

 

refer

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

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
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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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.