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

Circular dependency in Power Bi

bharathsurya_0-1614844962996.png

The data is entered on every Friday. The input format is as shown above.
The required output on power bi is shown below.

 

Capture.PNG


When I try to make measures for Cash on Hand, Total Cash Available and Cash Position, it says circular dependency. 
Link to excel file: https://docs.google.com/spreadsheets/d/1T81swf2pX2B2VdBEf1PGbDViHZOV6-v6E6rDQWAq0is/edit?usp=sharing 
Please help me to my find a solution.
Thanks in advance 🙂

1 ACCEPTED SOLUTION
luapdoniv
Resolver II
Resolver II

If I understand correctly, you are looking to bring in the closing cash as the opening cash of following week and not get into the calc on circular dependency. This is similar to the inventory model where we bring in the Closing Stock of previous period as the Opening Stock of next period. You can apply the logic found in this link to get to the solution:

 

View solution in original post

3 REPLIES 3
luapdoniv
Resolver II
Resolver II

If I understand correctly, you are looking to bring in the closing cash as the opening cash of following week and not get into the calc on circular dependency. This is similar to the inventory model where we bring in the Closing Stock of previous period as the Opening Stock of next period. You can apply the logic found in this link to get to the solution:

 

amitchandak
Super User
Super User

@Anonymous , I am not able to see the formula of Cash on Hand, Total Cash Available, can you provide those

 

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

Cash on Hand = Cash Postion of previous week
Total Cash Available = Cash on Hand + Total Cash Recipets
Cash Position = Total Cash Available - Total Cash Paid Out

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.