Forum Discussion

PeterElbek's avatar
PeterElbek
Frequent Visitor
6 years ago
Solved

Transfer from last WEEK / Carry over - throws error with circular reference

Putting together a simple matrix with the following measures per week:

 

Transfer from last week = CALCULATE([End of week];FILTER(ALL(Dato);Dato[WeekYearSort]=MAX(Dato[WeekYearSort])-1))
Transactions = CALCULATE(SUM(Cashflow[Likv. indv]);FILTER(Cashflow;Cashflow[Likv. type]="IK"))
End of week = [Transactions]
 
So far so good, but obviouly I want End of week to include Transfer from last week, but if I change to the below it throws an error complaining about a circular reference. I have absolutely no idea on how to fix this.
 
End of week = [Transfer from last week] + [Transactions]

3 Replies