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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
melg-9
Frequent Visitor

Circular dependency

I have access to some data which I do not own and have connected to their dataset, but cannot make any changes to it. 

 

Relationship is as follows:

melg9_0-1683067465509.png

 

I am trying to work out a count for the number of staff that have over 20 days annual leave.

 

I have tried creating a calculated column which works fine and I get the correct answer. 

melg9_2-1683067710090.png 
 
However, as soon as I try do this for the next quarter, I receive a circular dependency.
melg9_1-1683067563753.png

 

Below are some more details about how the measures are calculated (I highlighted each one in a separate colour so it was easier to match).

 

FY23 Q3 Forecasted Balance (30JUN23) = '_Measures Table'[FY23 Q2 Forecasted Balance (31MAR23)] '_Measures Table'[FY23 Q3 Accrual Days] '_Measures Table'[FY23 Q3 Leave Days Ending]
 
FY23 Q2 Forecasted Balance (31MAR23) = '_Measures Table'[FY23 Q1 Forecasted Balance (31DEC22)] + '_Measures Table'[FY23 Q2 Accrual Days] - '_Measures Table'[FY23 Q2 Leave Days Ending]
FY23 Q3 Accrual Days = SUM('Leave Balances'[_FY23 Q3 Employee Accrual])
FY23 Q3 Leave Days Ending = SUM('Leave Details'[_FY23 Q3 Leave Days])
 
If someone can please help me avoid this circular dependency and lead me in the right direction that would be appreciated. Thanks.
1 REPLY 1
v-zhangti
Community Support
Community Support

Hi, @melg-9 

 

A  circular dependency is when a measure/column A uses another B to compute and B need A to have a result. 

Please refer to the following links in the hopes of helping you.
Understanding circular dependencies in DAX - SQLBI

 

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.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

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.