Showing results for 
Search instead for 
Did you mean: 
Resolver I
Resolver I

Cummulative Total with adjustable parameter set to Today



I have a quite complex reqirement here and I think I am most of the way there;


I have loaded a picture of my issue below, essentially I am trying to use an adjustable parameter called "Extra Payment" to apply to the current month and adjust the forecast.


I have been able to create a cummulative DAX measure without the extra payment, but tried to add it via the following 2 formulas;


Actual Payment Forecast + Extra Payment = if(MAX('Business Loan'[PAYMENT DATE]) = DATE(YEAR(TODAY()),1,1),SUM('Business Loan'[Actual Payment Forecast])-'Business Loan Extra Payment'[Business Loan Extra Payment Value], SUM('Business Loan'[Actual Payment Forecast]))
This looks to see if the Payment Date from the table is the same as the start of the current month, which seems to be working as you can see the left chart shows a big negative for the extra payment parameter set to 500,000. The only problem is when I try to use this in a cummulative measure, the value of the parameter shows, but doesn't add to the following months;
Cummulative Payments = CALCULATE([Actual Payment Forecast + Extra Payment], FILTER(ALLSELECTED('Business Loan'),'Business Loan'[PAYMENT DATE] <= MAX('Business Loan'[PAYMENT DATE])))
Not sure what I'm missing here, essentially I want the cummulative to include my parameter on today's date and going forward.
Any help would be great.

Extra payment query.png

Resolver I
Resolver I

Solved it, needed to do >= to the date

View solution in original post

Resolver I
Resolver I

Solved it, needed to do >= to the date

Helpful resources

September Update

Check it Out!

Click here to learn more about the September 2022 updates!

Power BI Show episode 9

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power BI Dev Camp Session 26

New Date - Check it Out!

Mark your calendars and join us on Thursday, October 6 at 11a PDT for a great session with Ted Pattison!

Top Solution Authors