How To Create Automated Forecast From Historic Data

forecast is derived from your historical results. So I’m going to show you how you can quickly grab historic data, consolidate it, and then create a forecast from it, which is still align to your entire data model. 
Let’s assume that we already have say some sales information already and we have our Sales calculation here. 


So we need to find a way to project forward to 2018. We want to work out our sales forecast in 2018. If you look at this filter down on the right-hand side, I’ve actually filtered for only 2018, so we’re only looking at 2018 here.

To get in-Depth knowledge on Power BI you can enroll for a live demo on Power BI online training 


Now we create another measure table by clicking on Enter Data and it will give you the option to create a measure table. Let’s call this table Sales Forecasting. If you can get into the habit of creating these measure tables, it would benefit you immensely in terms of organizing your model. 


Next is we create a new measure using time intelligence functions to make our sales projections from 2017’s numbers. So we go to New Measure, and let’s call this the Sales LY and go CALCULATE by Total Sales. We could do the same for any any of our metrics, but in this example, we’re going to work on Sales.
And we need a DATEADD, which is one of the best time intelligence function just because of the flexibility you have with it. Then, we jump back one year here (-1), and put our interval (YEAR) up here. Then, push Enter.Learn more from Power BI course


If we grab this and drag it to the table, we’re going to see that we are now projecting forward all of the data from 2017. So we got our first column of information of the three that we’re going to calculate today.


In this sample scenario, we have to jump back two years as well because we want to we want to work out three years forecast. So to do the second year, we simply copy the pattern, and just make a couple of adjustments.
We change the name of the measure and the parameter inside, and we’re now projecting our sales from two years ago. We will also do exactly the same for the 3 years ago.


And now we have three years of information that we can now create into our forecast.


Using Variables To Create One Measure For A 3-Year Forecast

There’s another way to do this in an efficient way to create a Power BI forecast. We’ll use variables to create one measure, instead of three, and get exactly the same result that we seek.
So we go to New Measure once more and for this, let’s call it the Sales Forecast. We go VAR (variables), then Sales LY on the next line. We do the same on the next couple of rows for 2 and 3 years ago.
After which, we can jump down and go RETURN, and here’s where we can put in the logic. We use DIVIDE with our three years of data, so we sum up Sales LY, Sales 2 years ago, and Sales 3 years ago. Then, we divide it by 3. We’ll also put our alternative result,which is 0.


We just put all three of the measures we made earlier inside of variables, we get the same result. I highly recommend this, as it is more efficient. We have now our sales forecast and we have an average of all of these three.
Moreover, we want to see some increase in our sales, right? So let’s do a forecast to showcase a five percent growth rate. To do this, we simple add a FACTOR in our formula, and then multiply the last row by the factor.Get more skills from power bi online course


Creating The Visualization

Once all the needed formulas are created, we turn this into visualizations and see clearly our Power BI forecast. And we now have a virtual sales forecast that showcases how much we need to make every single day to reach our forecast.


We can also put this inside a cumulative total pattern. So we go and create a new measure, and call it Cumulative Forecast. On the next line, we put in CALCULATE Sales Forecast. Then, go FILTER ALLSELECTED by Dates


Once we have that, we put it down here and make it a cumulative total, and now we got a cumulative forecast that we could measure up cumulatively versus our actual results as soon as we got into 2018.


The coolest way about doing this is that it links up to the data model. So your forecasts can be filtered by anything in the data model because they derive from historical information that sits on a table within the data model.
With this, we can easily go and filter by Product Name here. We grab our Sales Forecast for the Product name and now we have forecast my products. 


This also enables us to select a particular product, say Product 47. And as we change the filters here we can see how much we need to sell per day for this product, and/or see its cumulative result clearly. 
To get a dept knowledge on Msbi, learn more through with professionals Msbi Online Training India

Comments

Popular posts from this blog

What is Power BI: Architecture and Features Explained

Fundamentals of Blockchain Network Security

Scope of UI designers