Skip to main content

I have created this chart which shows Actual expenditure (green) vs. Expected expenditure (black) using RUNNING_SUM. However, I would like the green curve to stop at 'Today'. How to combine IF statement and RUNNING_SUM?In my initial attempt I tried to set up an IF-statement, but obviously it doesn't work since RUNNING_SUM is an aggregate

Screenshot 2021-03-11 at 12.40.43Any suggestions?

4 answers
  1. Mar 11, 2021, 12:40 PM

    Hey @Morten Toft Rasmussen​ ,

    wrap your Dato with Min function i.e

    IF min([Dato])<=[Today Parameter] THEN [Agg. Actual Expenditure]

    END

    I hope this help

0/9000