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

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.