Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

Calculate future values based on already calculated value

Hi 

 

Hoping soomeone can help because this is beating me!

 

I'm trying to create a calculated column which gives future fill figures (see below) based on actual inflow and outflow values and the latest fill value. 

The problem i'm having trouble with is trying to reference the predicted value in the 'Future Fill' column when the 'Actual Fill' is blank

 

I currently have;

Future Fill = CALCULATE(sum(Mytable[Actual Fill]), PARALLELPERIOD(Mytable[Date], -1, month)) - Mytable[Future outflow] + Mytable[Future inflow]

 

This of course is only fine when there is an 'Actual Fill' value, when the value is blank it returns 1, -2 and 4 for the future months as opposed to the desired result above.

 

When 'Actual Fill' is blank i need the formula to use the previous 'Future Fill' value

 

Does anyone have any ideas?

 

 

3 Replies