Forum Discussion

ManPi's avatar
ManPi
Frequent Visitor
6 years ago

Running total with no Month value

   

 

Hello,

 

I use the following formula for a calculation. This works fine, but if a Month has no Saldo the formula gives the sum of all the Months instead of the last 12 Month's. Do you know a solution?

 

    CALCULATE(SUM(Grootboekrekeningensaldos[Saldo cumulatief ]);

        DATESBETWEEN(Grootboekrekeningensaldos[Periode];

            DATEADD(LASTDATE(Grootboekrekeningensaldos[Periode]);-11;MONTH);

            LASTDATE(Grootboekrekeningensaldos[Periode])

    )

)

 

Kind regards,

 

Mandy Pigmans

 

2 Replies