Power BI Tutorials
  • Power BI
    • Ex1# Getting Data in Power BI
    • Ex2# Explore the Analytics Pane in Power BI
    • Ex3# Building Line Charts in Power BI
    • Ex4# Bar and Column Charts in Power BI
    • Ex5# Build Scatter Chart in Power BI
    • Ex6# Aligning Charts with Gridlines in Power BI
    • Ex7# Coloring Charts in Power BI
    • Ex8# Forecasting in Power BI
    • Ex9# Filter Data in Power BI
    • Ex10# Implement Clustering in Power BI
    • Ex11# Utilize the Focus Mode of a Chart in Power BI
    • Ex12#Create a Combination Chart in Power BI: Bar Chart with Line
    • Ex13#Adding Static Visualization to Power BI Reports
    • Ex14#Implementing Hierarchical Axis and Concatenation in Power BI
    • Ex15#Table and Matrix Visualization in Power BI
    • Ex16#Build a Tree Map and Pie Chart in Power BI
    • Ex17#Adding Slicers to a Power BI Report
Powered by GitBook
On this page
  • Introduction
  • Data
  • Loading Data
  • Creating Line Chart
  • Forecasting in Power BI
  • Conclusion

Was this helpful?

  1. Power BI

Ex8# Forecasting in Power BI

PreviousEx7# Coloring Charts in Power BINextEx9# Filter Data in Power BI

Last updated 1 year ago

Was this helpful?

Introduction

Forecasting is one of the most important areas for any business. You can forecast any metric like revenues, expenses, unit sales, demand, prices, and many more. This guide will demonstrate the important skill of forecasting using inbuilt capabilities in Power BI Desktop.

Data

In this guide, you will work with a fictitious data set of bank loan disbursal across years. The data contains 3,000 observations and 17 variables. You can download the dataset . The variables to be used are described below:

  1. Date: Loan disbursal date.

  2. Loan_disbursed: Loan amount (in US dollars) disbursed by the bank.

Start by loading the data.

Loading Data

Once you open the Power BI Desktop, the following output is displayed.

b1

Click on Get data option and select Excel from the options.

Browse to the location of the file and select it. The name of the file is BIdata.xlsx, and the sheet you will load is BIData sheet. The preview of the data is shown, and once you are satisfied that you are loading the right file, click Load.

You have loaded the file, and you can save the dashboard. It is named PowerBI Visualization. The Fields pane contains the variables of the data.

Creating Line Chart

Time series forecasting is visually represented with a line chart. So, to begin, you will add a line chart to the canvas. You can locate it in the Visualizations pane. Click on the Line chart and it will create a chart box in the canvas. Nothing is displayed because you are yet to add the required visualization arguments.

You can resize the chart on the canvas, and the next step is to fill the visualization arguments. Drag the Date variable to the Axis field, and the Loan_disbursed variable into the Values field. This will create the following chart.

You have created the time series chart named Loan_disbursed by Year. The next step is to generate the forecast of future loan disbursal.

Forecasting in Power BI

The Forecast capability in Power BI is in the Analytics tab.

To add a forecast to the data, click on Add under Forecast

You are required to enter the arguments. Forecast length specifies the length of the forecasting horizon. The Confidence interval specifies the confidence level that the forecast value will fall under the lower and upper bound. The following chart is generated, where the shaded grey region indicates the forecast.

Hover around the shaded region to see the forecasted value. In the chart below, you can see the forecast value for the year 2021, and the lower and upper bound of the forecast at 95 percent confidence interval.

Conclusion

Forecasting is a ubiquitous requirement for every organization, small or big. Business activities require forecasting ranging from sales forecasting to generating price forecasts. It is used in time series forecasting, stock price prediction, inventory forecasting, manpower planning, budgeting, and financial valuation areas. The knowledge of using the forecast capabilities in Power BI will add lots of strength to your analytics and business intelligence capabilities.

b2
b3
b4
ff1
ff2
ff3
ff4
ff6
ff7