TomQueens
Occasional Contributor

Level 2 DEM03 - Baseline Forecast

Hi,

I have recently started my Level 2 and was wondering if someone could offer me some guidance.

I'm currently working through sprint 2 but I'm struggling with the formulas for the Baseline forecast FY21.

This is what I have so far.

Baseline Forecast - IF 'SYS01 Time Settings By Week'.'1st Forecast Year?' THEN 'DAT03 Historic Volumes'.'Offset Volumes for 1st Forecast Year' ELSE 'SYS01 Time Settings By Week'.'2nd Forecast Year?' THEN OFFSET('DAT03 Historic Volumes'.'Offset Volumes for 1st Forecast Year',52,0)*1.1

Would someone help me with where i'm going wrong? I've looked at Anapedia for help, but I'm still quite stuck.

Thanks in advance.

15 REPLIES15
davidmccarty
Group Leader

@TomQueens- Welcome to Level 2!

所以充分披露,我试图结束冲刺3 of Level 2 so please don't consider me a "Master Anaplanner".

But a couple of questions that might help you:

1. What are you seeing that makes you think that your formula is incorrect? My hunch is that you are not seeing values in FY21. If that is the case, you should look at the parameters that OFFSET utilizes, specifically the offset value itself. Read th first paragraph in Anapedia closely.

2. Why are you multiplying by 1.1? Remember, this is the baseline forecast...I don't think it should take into account any growth rate.

Hopefully this helps

David

TomQueens
Occasional Contributor

Thank you David,

I looked over OFFSET on Anapedia and it makes a lot more sense now. I also went back and read over what is needed in the baseline forecast so I took out the multiplication

Appreciate your help!

Misbah
Moderator

@TomQueens

I think the formula is incorrect at two places

1. If you are pulling the numbers forward (for example in Baselines) - You need to reverse the sign of 52 in OFFSET

2. Else statements should simply say keep it zero

TomQueens
Occasional Contributor

Hi Misbah,

I have changed my formula to the following:

IF 'SYS01 Time Settings By Week'.'1st Forecast Year?' THEN 'DAT03 Historic Volumes'.'Offset Volumes for 1st Forecast Year' ELSE IF 'SYS01 Time Settings By Week'.'2nd Forecast Year?' THEN OFFSET('DAT03 Historic Volumes'.'Offset Volumes for 1st Forecast Year',-52,0) ELSE 0

But I am now getting a time range error. Would best practice be adjusting DEM03 to match the same time ranges as DAT03?

Thanks for your help

sunilramakumar
Contributor

You have put two then statements. Try removing that.

einas.ibrahim
Master Anaplanner/Community Boss

Hi@TomQueens

I hope you found the answer you were looking for and moved ahead, if not then read on.
First, let's go back to the requirement

image.png

We have 3 FYs in play here:

  1. FY 19. This is actual historical data from the past and we don't need - or shouldn't - change it.
  2. FY 20 which is our 1 st forecasting year (current/base year)
  3. FY 21 which is the 2nd forecasting year.

“问题”我们正在努力解决s to find a base forecast for the base forecast year FY20 only

  • The exercise suggested that you use the same data from FY19 and preserve seasonality. You have actually calculated this Base Forecast value in another module (Historical). I hope you used the right sign for the 52 to determine you want to read from the prior year

Now look at the last bullet point of the instructions

  • If it is the first forecast year, then offset the values from the volumes 52 weeks earlier, else 0.

It is directing you to how to get the base forecast - which is only for the base forecast year/1st forecast year/FY20

Any other values are not considered Base Forecast and the value should be 0 as instructed.

I hope that helps you and/or anyone who might be having the same question.

Einas
"Give a Man a Fish, and You Feed Him for a Day. Teach a Man To Fish, and You Feed Him for a Lifetime"

Dear community members
Consider posting your question as a new topic and not in the thread of another topic/question. This help other community members to easily find the answer they looking for and doesn't cause the original thread to be so cluttered that we can't find what we are looking for
CommunityMember113513
New Contributor

Hello Einas,

I read your explanation below and found it really useful. I tried to follow the steps and input the following formula the the 'Baseline Forecast' account:

IF 'SYS01 Time Settings By Week'.'1st Forecast Year?' THEN 'DAT03 Historic Volumes'.Offset Volumes for 1st Forecast Year ELSE 0

But this still returns an error:disappointed_face:

Any tips you can offer where I am still going wrong?

Many thanks!
Ben
AleksandraShariy
Occasional Contributor

Hello everyone, hello support Team

I stuck with the same issue - different time ranges

Please see system msg:

Invalid formula:
'DEM03 Demand Forecast'.Baseline Forecast = IF 'SYS01 Time Settings By Week'.'1st Forecast Year?' THEN OFFSET('DAT03 Historic Volumes'.Volumes, -52, 0) ELSE 0
For function OFFSET, all line item arguments that vary by time must use the same Time Range as the result line item.
Result line item 'DEM03 Demand Forecast'.Baseline Forecast uses Time Range Model Calendar. But line item 'DAT03 Historic Volumes'.Volumes uses Time Range FY19-FY20.

Could you please help me?

JaredDolich
Moderator

@AleksandraShariy

You can use the model calendar.

Yours:

IF 'SYS01 Time Settings By Week'.'1st Forecast Year?' THEN OFFSET('DAT03 Historic Volumes'.Volumes, -52, 0) ELSE 0

Correct:

IF 'SYS01 Time Settings By Week'.'1st Forecast Year?' THEN 'DAT03 Historic Volumes'.'Offset Volumes for 1st Forecast Year' ELSE OFFSET(Default Forecast, -52, 0)

Let's break this down:

  • We want to bring forward history if we are in the first year. So we need to refer to the DAT03 volumes. That is where you will use the offset on history. That is also why you can use two different calendars. DEM03 uses the model calendar.
  • If we aren't in the second year, we need to bring forward the first year's forecast.


Jared Dolich