With the September Community Preview Power BI analytics tool allow us to do simple forecasting with data without doing complex DAX or any other mechanism. You can download it from September release
After successful Power BI desktop install you have to enable Forecasting feature from Preview Features.
Go to File - > Options and Settings - > Options
In the Options menu click the Preview Features tab and check Forecasting
After successful Power BI desktop install you have to enable Forecasting feature from Preview Features.
Go to File - > Options and Settings - > Options
Now the forecasting feature has been enabled successfully in your Power BI desktop version. Next step is to create dataset. For that I used AdventureWorksDW2014 database dbo.vTimeSeries view. I make some aggregations for existing data and create another view on top of that in order to make the demo successfully. Because for time series data we have some constrains like the time data variable must be Date data type likewise. And the existing view contains multiple records for particular month by reporting date. I obtain the Summation of the Sales amount for each month. Here is the code.
USE AdventureWorksDW2014 GO CREATE VIEW [dbo].[vForeCast] AS ( SELECT [CalendarYear] , [Month] , SUM(Amount) AS Amount , CAST(LTRIM(RTRIM(CalendarYear)) AS CHAR(4)) + '-' + IIF(LEN(MONTH) = 1, '0'+CAST(Month AS CHAR(1)) , CAST(Month AS CHAR(2))) + '-01' AS Date FROM [dbo].[vTimeSeries] GROUP BY [CalendarYear], [Month] );
Now, go to power BI desktop and Get data in order to import data in to the data model. (Please, note that I'm not give the steps for connecting to a
Give the server credentials where I need to connect with
From the next window in Navigator pain select the data source.
Now data is successfully loaded to the Power BI data model.
Remember, we need to take care of our data types. The date field data type need to be Date data type. Lets go to the Reporting tab.
Select Line Chart and data you need to plot.
When you select Fields you have to select one Measure and date field. In my case I select Amount as measure and Date field.
In the Axis window down arrow pick Date instead of Date Hierarchy (Because we are dealing with dates in the time series)
Now the Line chart will looks like below.
Now go to Analysis tab in the right. At the bottom there is a forecast pane. Expand it and ready to configure.
You can configure Forecast lengths (How many data points or period (Months , Quarters), confidence interval etc.
After do the configurations click apply. You can now see the forecast in the line chart as below.
Hillary, Thanks a lot for the comment :-)
ReplyDeleteSuper blog! very clear information with diagrams very understandable thanks keep update Power BI Online Training Bangalore
ReplyDeleteIt's Very informative blog and useful article thank you for sharing with us , keep
ReplyDeleteposting learn more about BI Tools
Tableau Online Training
ReplyDeleteYou have discussed an interesting topic that everybody should know. Very well explained with examples. I have found a similar website
data science consulting visit the site to know more about Omdata.
Your blog is very nice and provide me informative content thanks for sharing for more information about Power Bi vs Tableau
ReplyDeleteHere is Mr Benjamin contact Email details,lfdsloans@outlook.com. / lfdsloans@lemeridianfds.com Or Whatsapp +1 989-394-3740 that helped me with loan of 90,000.00 Euros to startup my business and I'm very grateful,It was really hard on me here trying to make a way as a single mother things hasn't be easy with me but with the help of Le_Meridian put smile on my face as i watch my business growing stronger and expanding as well.I know you may surprise why me putting things like this here but i really have to express my gratitude so anyone seeking for financial help or going through hardship with there business or want to startup business project can see to this and have hope of getting out of the hardship..Thank You.
ReplyDeleteVery nice article,Thank you...
ReplyDeletePower BI Course