Forum Discussion
cottrera
Post Prodigy
5 years agoDAX create forecast based on historical data
Hi I have a facts table with 4 columns job ref, completed date, Contactor and Spend. The completed dates start Apr 2021 and will eventually end 30th Mar 2022 (our financial year) Facts Tab...
amitchandak
Super User
5 years agocottrera , Assuming month is coming from a date table
new DLO = if( max('Date'[Date]) <=eomonth(today(),-1), [DLO] CALCULATE([DLO],DATESINPERIOD('Date'[Date ],eomonth(today(),-1),-6,MONTH)) )
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.