Forum Discussion
Forward rolling total demand
- 4 years ago
Hi, Anonymous ;
Try it.
3 months total values = VAR LastDate_ = LASTDATE(Append1[Week Start date]) RETURN IF(MAX('Append1'[Attributes])= "Demand",CALCULATE( SUM(Append1[Value]), DATESINPERIOD(Append1[Week Start date], LastDate_,- 3, MONTH),Append1[Attributes]="Demand"))the final show:
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous , For all time intelligence functions use date table
VAR LastDate_ = LASTDATE(Append1[Week Start date])
RETURN
CALCULATE(
SUM(Append1[Value]),
DATESINPERIOD(Date[date], LastDate_, 3, MONTH)
)
Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :https://youtu.be/OBf0rjpp5Hw
https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.