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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Tasos
Helper II
Helper II

Circular dependency in columns with different dates

Hello,

 

I am trying to recreate a relatively easy calculation in Excel in PowerBI. However, it returns a circular dependency.

 

In Excel, I don't have this issue as, although I use data from the same column, I am using a different row. I have tried to use the calculate function as it is proposed in previous posts regarding the circular dependency, but with no success.

 

I have added both an Excel sample and the PowerBI template with my so far calculations for the same sample.

 

Thank you for your support!!

 

Tasos

 

4 REPLIES 4
v-frfei-msft
Community Support
Community Support

Hi @Tasos,

 

We can create measures to work on it, then we will get no error.

 

awd0m = CALCULATE(SUM(Table1[Demand]))
awd1m = CALCULATE(SUM(Table1[Demand]),DATEADD('Table1'[Date],-1,DAY))
awd2m = CALCULATE(SUM(Table1[Demand]),DATEADD('Table1'[Date],-2,DAY))
CWD2M = IF(ISBLANK([awd1m]),BLANK(),IF(MAX(Table1[Capacity])>[awd2m],[awd2m],MAX(Table1[Capacity])))

23.PNG

 

Regards,

Frank

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Hi @v-frfei-msft,

 

Unfortunately, your approach was not what I am looking for. I am currently trying @101Mathew's solution working in Power Editor, although I am not sure how this can help.

 

Thank both of you for your time,

Tasos

@TasosI agree with you solution, if the original data is still required otherwise cut down the on the data loaded into the report when possible.

 

Regards,

Mathew

101Mathew
Resolver II
Resolver II

Why not do this in Power Query/Editor.

 

 Just create a custom column, and you can do all sorts of calculations

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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