Forecasting Seasonal Data using powerpivot

Mavericks334

Active Member
Joined
Jan 26, 2011
Messages
280
Hi,

How to create a seasonal index for each month, which could be used to forecast using it in combination with historical data either with Linear or exponential forecasting.

Regards,
Renato.
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
There are endless possibilities in terms of the minutiae of how you would want to perform the calculation but ALL() in CALCULATE() is the technique you are probably looking for.

On the basis that you have a measure called [Sales] and the time period month number comes from a table called calendar:

Code:
[Seasonal Index] = [Sales] / CALCULATE([Sales],ALL(Calendar[Month Number]))

There are two caveats:

- You will need to put a further time restriction in your second calculate, probably to only include full completed years.

- It may behave strangely in grand totals so depending on how you intend to use it you could package it like this:

Code:
[Seasonal Index] = if ( HASONEVALUE(Calendar[Month Number]), [Sales] / CALCULATE([Sales],ALL(Calendar[Month Number])), BLANK())

On the downside that would stop your [Seasonal Index] measure 'magically' working if you decided to use it at a higher level e.g. Quarterly.

Hope this helps.
Jacob
 
Upvote 0
Hi Jacob,

I have tried the above suggested measures, i get 1 for all the measures, as the seasonal index.

Regards,
Renato.
 
Upvote 0
The Problem, now is that if i had current fiscal years data, it takes that numbers as well. How that could be avoided. i tried to use

CALCULATE([Sales],ALL(Calendar[Month Number]),Year< [Max Year]),

Where MAx year is the year from the slicer
 
Last edited:
Upvote 0
The Seasonal index changes when i select a year in the slicer and gives me that year seasonal index, who could i see that the slicer does not effect the seasonal index except where it takes the data from the years lesser than Max year selected
 
Upvote 0
Sorry, it was never going to work properly without ALL() on more than just the Month Number.

On a basic level this works:

[Seasonal Index] = [Sales] / CALCULATE([Sales],ALL(Calendar))

It becomes slightly more complex if you then want to use a slicer to specify the years to use. Two questions:

- What is the purpose of the model? Is it to use this measure as part of a wider PowerPivot based tool or is it purely to derive the seasonal index?
- Is the slicer part of the calendar table?
 
Upvote 0
Yes, it helps me select the year that i wish to forecast data for. So when i select the year in the slicer it creates a seasonal index for that particular year, not the historical years.
 
Upvote 0
This will do it, has to have something like month number in the rows or columns and needs to be filtered by a 'Year'

=CALCULATE([Sales],
FILTER(ALL(Calendar[Calendar Year]),Calendar[Calendar Year]<values(calendar[calendar year])))
/
CALCULATE([Sales],
FILTER(ALL(Calendar),Calendar[Calendar Year]<values(calendar[calendar year])))


BTW, I've no idea why you've posted that other question that is clearly part of this thread. Its pretty bad form!</values(calendar[calendar></values(calendar[calendar>
 
Upvote 0
The Other question, is where i would use the values from that, to multiply with the seasonal index that i get from this question. So total two different questions
 
Upvote 0

Forum statistics

Threads
1,224,115
Messages
6,176,475
Members
452,728
Latest member
mihael546

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