Forum Discussion
Tasos
Helper II
7 years agoCircular 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...
v-frfei-msft
Community Support
7 years agoHi 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])))
Regards,
Frank