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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

Circular Dependency

Hi everyone,

 

I have an issue with calculated columns. I need a column FinalBalance that will contain final balance for each account_id on curr_date.

 

I tried to use a second column InitialBalance:

 

 

FinalBalance = IF(Table[curr_date] = MIN(Table[curr_date]); Table[input_sum] - Table[output_Sum]; Table[InitialBalance] + Table[input_sum] - Table[output_Sum])

InitialBalance = IF(Table[curr_date] = MIN(Table[curr_date]); 0 ; CALCULATE(SUM(Table[FinalBalance]); Table[curr_date] - 1))

 

 

but as expected it resulted in a circular dependency error.

 

I'd appreciate it if you help me to solve this issue.

 

My dataset:


Screenshot_1.png

 

1 REPLY 1
BalaVenuGopal
Resolver I
Resolver I

Hi @Anonymous ,

 

 

Could you please explain what are you expecting from this result set your calculated columns have dependency on each other first you create one calc column then use that for second reference.

 

Plese explain your psudo logic then i can give  you calc column formula.

 

Thanks

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.