I’m having difficulty creating a new column that uses the previous month’s Forecast Percentage for future months. I’m using the measure below but it’s just showing blanks for August onwards. Related measures below
DAU Measure 3 = CALCULATE([Average Users (actuals)],PREVIOUSMONTH(Dates[Date]))
Average Users (actuals) = CALCULATE(DIVIDE([DAU 1M MA],[Total Devices Base - Actuals]))
DAU 1M MA =
IF ( MAX ( 'Dates'[Date] ) <= TODAY (),AVERAGEX(
DATESINPERIOD( Dates[Date],
LASTDATE( Dates[Date] ),
-1, MONTH ),
[Total Users2] ), [DAU Target])
Well it’s always difficult to judge the results in the absence of PBIX file. But still I think from the given screenshot provided by you is as follows -
The figures portrayed from “Jan - July” are the months that pertains to the current year and therefore based on that it’s showing the Forecast Percentage for those months because in your formula your context is applied as "TODAY() - 1 Month" and therefore it’s giving you the result for the July month as well since we’ve already entered this month.
Now for figures for the period from “August - December”, this figures might be pertaining to the last year and therefore it’s not able to showcase the results for those periods since we haven’t entered into those periods. But if you apply filter/slicers for the years such as “Current Year” and “Previous Year” those blank rows will get removed and you’ll see the results only for the period till date.
Alternatively, if you’re following the updated “Date” table which is already available in the forum in that case you can use the “IsAfterToday” column to filter out your results and to show the results only for the current period till date.
This similar type of problem was asked few days back onto the Forum by one of the member and it used to show similar sort of results. I’m providing a link of that query as well as working of my PBIX file about how we were able to tackle that problem by incorporating the 3rd option.
Hoping you find this useful and helps you to achieve the desired analysis.
Please feel free to write back in case I’ve missed out on anything.
I’m now seeing the future month value but it’s still not carrying the previous month values over.
Here is the “New Measure” that should theoretically be doing what I want it to…
New Measure = IF ( MAX ( ‘Dates’[Date] ) < Today(),[Forecast Rate(actuals)],[previous month])
If possible can you please provide your PBIX file.
If it’s confidential you can mask your data. I’m providing a link of a video about how you can mask your sensitive data which was created by @BrianJ and then create a sample file of it so that we can have a look at your problem.
Firstly I would like to apologize because the file which you’d sent to me didn’t opened up in my machine due to version that I’m using so I was not able to look at the file.
But I would like to give my last shot in order to get that answer before I rest my case. You can try out the below formula -
Ultimately I would like the most recent percentage to carry into the future months forecast. In this case the percentages from June - December should be the same.
Thanks very much for the additional clarification. I worked on this until late last night – think I was close to a solution and then we lost power due to a violent thunderstorm. Will get back to it after work today, and hopefully have a solution to you this evening.
Still working hard on this one, but it’s proving extremely recalcitrant. Have called in reinforcements to get fresh eyes on the problem. Will continue to keep you posted.