Handing Time Intelligent FCST vs ACT in Power Query/ PowerPivot

Vaslo

Board Regular
Joined
Jun 3, 2009
Messages
159
Hello all,

I am trying to handle an issue with running forecasts. Essentially I drop a bunch of data into a few tables, much of it overlapping in months - meaning that when I drop a new actual month in, I will still keep it's forecasted version in the table and simple use a cell to designate it as actual or fcst (to be honest I may have many forecasts since each month before will be in there, but let's do it simple.)

I designed a table to sort of handle this, but have no idea how to have the table dynamically change, perhaps by changing a cell to let the model know what months should use the actuals and which month should use the latest forecast.

Below is that table but if there is a reference somewhere to explain how to do this, or I am going about this in the wrong way, please let me know. I know a fairly good way to do with just an excel formula, but can't apply it to a Data Model in anyway. In the example, my current Actual month is July 2018, so all the actuals from that point and before should be actual. After that it should use a particular forecast.

Thanks!

Period CurrentMonthScenName Include?
2018-012018-07ActualTRUE
2018-022018-07ActualTRUE
2018-032018-07ActualTRUE
2018-042018-07ActualTRUE
2018-052018-07ActualTRUE
2018-062018-07ActualTRUE
2018-072018-07ActualTRUE
2018-082018-07ActualFALSE
2018-092018-07ActualFALSE
2018-102018-07ActualFALSE
2018-112018-07ActualFALSE
2018-122018-07ActualFALSE
2018-012018-07FCSTFALSE
2018-022018-07FCSTFALSE
2018-032018-07FCSTFALSE
2018-042018-07FCSTFALSE
2018-052018-07FCSTFALSE
2018-062018-07FCSTFALSE
2018-072018-07FCSTFALSE
2018-082018-07FCSTTRUE
2018-092018-07FCSTTRUE
2018-102018-07FCSTTRUE
2018-112018-07FCSTTRUE
2018-122018-07FCSTTRUE

<tbody>
</tbody>
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Well, filters are additive so something like.

Code:
CALCULATE (
   SUM ( [Amount] ),
   FILTER ( ALL ( Table ),
       Table[Date] < "31/07/2017",
       [ScenName] = "Actual"
   )
)
+
Repeat the above but switch the sign and change actual to forecast.

Would do it in DAX. Google for disconnected slicers to see how you can control the date to be selectable in your viz.



A better answer would seem to be to only pull in the data you want with Power Query.
 
Upvote 0

Forum statistics

Threads
1,214,943
Messages
6,122,376
Members
449,080
Latest member
Armadillos

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top