Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Creating a new summary table with predictions

I have a client requirement for a stacked area chart that also needs to show forecasting. Based on my research and prior conversations in this Forum, it looks like Power BI has forecasting only for Line Graph and not for Stacked Area chart. Even in Line Graphs, if there are multiple series, forecasting isn't available.

 

Given this restriction, I'm trying to do a bit of Excel-based prediction and then using that to create a new summary table (with forecast) and generate a Stacked Area chart.

 

For starters, this is how last year's data looks:

 

SectorAprMayJunJulAugSepOct
Sector A365314271294347398475
Sector B60656042000
Sector C0.030.020.040.080.1700
Sector D10097878987  
Sector E206165472534  

 

This is the predicted change for each of the sectors:

 

SectorFactor
Sector A-15.55%
Sector B36.15%
Sector C4.85%
Sector D63.30%
Sector E15.38%

 

I have values till current month for current year. How do I apply the prediction factors to the data to generate a new table in Power BI till the end of the FY? Once this table is generated, I can use it as the basis for my Stacked Area chart. But this seems to be a challenge. Any thoughts?

 

Thanks.

8 REPLIES 8
Anonymous
Not applicable

@lbendlin 

We have data for FY 2020-21 at a monthly level. We also have data for FY 2021-22 till the current month (e.g. OCT). The client has used some logic (mostly, past years' data) to generate prediction factors for each of the sectors.

 

I plan on creating a new Summary table that looks like this:

Sector, ..., AUG21, SEP21, OCT21, NOV21, DEC21, ..., MAR22

 

The values for this table will be existing values until OCT21. But for columns NOV21 to MAR22, I will need to multiply the NOV20 value for that sector with the Prediction Factor. This will eventually create a summary table with current and predicted values. I can then show a Stacked Area chart of this table.

 

Does this help?

 

lbendlin
Super User
Super User

You may want to explain a bit more how you like to forecast.  Based on last month only, based on all available data, based on a sliding window? Should the forecasted results be part of the next forecast?

Anonymous
Not applicable

@lbendlin 

We have data for FY 2020-21 at a monthly level. We also have data for FY 2021-22 till the current month (e.g. OCT). The client has used some logic (mostly, past years' data) to generate prediction factors for each of the sectors.

 

I plan on creating a new Summary table that looks like this:

Sector, ..., AUG21, SEP21, OCT21, NOV21, DEC21, ..., MAR22

 

The values for this table will be existing values until OCT21. But for columns NOV21 to MAR22, I will need to multiply the NOV20 value for that sector with the Prediction Factor. This will eventually create a summary table with current and predicted values. I can then show a Stacked Area chart of this table.

 

Does this help?

"I will need to multiply the NOV20 value for that sector with the Prediction Factor"  - not following the logic here.  That's not really how forecasting works. Please elaborate. Did you mean to implement a sliding window?

Anonymous
Not applicable

This Factor table has been computed by the client based on historical values.

 

SectorFactor
Sector A-15.55%
Sector B75.53%
Sector C4.85%
Sector D63.30%
Sector E15.38%

 

They feel that these factors are sufficient to project the values for the remainder of the FY. This means that, if the most recent data for this FY is till OCT21, then this is what they want:

NOV21 = NOV20 * Factor

DEC21 = DEC20 * Factor

(and so on till)

MAR22 = MAR21 * Factor

 

Unfortunately, this is what the client wants. I am trying to see if I can create a Summary table with existing data and these "projected" data.

That makes a lot more sense. Please provide some more sample data (at least back to Nov 20 ) 

Anonymous
Not applicable

Data for 2020-21:

SectorAprMayJunJulAugSepOctNovDecJanFebMar
Sector A427366320349412472571320349412349412
Sector B131722291424422291291
Sector C0.080.150.110.130.170.120.140.110.130.170.130.17
Sector D9285828595  8285958595
Sector E10467346126  3461266126

 

Data for 2021-22 (so far):

SectorAprMayJunJulAugSepOct
Sector A365314271294347398475
Sector B616563515400
Sector C0.060.040.020.080.170.170
Sector D10097878987  
Sector E206165472534  

 

These are sample data.

Anonymous
Not applicable

Hi @lbendlin , does this sample data (above) help?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.