This chapter gives a brief introduction on using Power BI Desktop to generate reports and dashboards and integrating the reports in SharePoint to achieve Business Intelligence.
Business Intelligence in SharePoint is vast and is achieved with the combination of SharePoint and Microsoft Power BI in particularly Excel. This combination of the PBIX file and SharePoint enables us to create dashboards, reports, and scorecards with simple as well as complex data.
The above-said process is two-fold.
Power BI is a cloud-based Analytics Service that allows users to analyze and visualize data with greater speed and efficiency. The data is transformed into interactive reports, dashboards, or Compelling visualizations.
The Power BI Service is built upon Azure. The Power BI service architecture consists of 2 clusters.
WFE Cluster manages the initial connection and authentications process. Whereas BE Cluster handles the user interactions. Power BI uses Azure Active directory for the purpose of user validation & authentication, whereas Azure Blob and Azure SQL manage the storage of data and Metadata.
Power BI Service is not available as a private internal cloud. However, using Power BI and Power BI Desktop, you can connect to your on-premises data sources using on-premises Data Gateway.
Power BI is a Microsoft product which is of twofold:
This document elaborates the steps to install and create Power BI Reports using Power BI Desktop program
Power BI Desktop integrates the powerful query engine with the online Power BI Service. It is a Powerful analytics tool designed for windows. Powerful data connections, models, and reports are created using the Power BI Desktop. Whereas Power BI Service is used to shares the power BI Desktop reports to the users to view and interact with them
It is a powerful and highly accessible tool to build robust models and craft reports.
Power BI Desktop enables the user to connect to different data sources data, shape or refine the data and represent the data model in the form of reports. This centralizes the scattered and disconnected data and represents them in the form of reports. The user can save the work to a file, which is Power BI Desktop file format (.pbix) file format. This can be shared with other users by uploading the file to the Power BI SERVICE
Go to PowerBI.Microsoft.com and click on Products and click on Power BI Desktop. Click on the download button. A PBI Desktop MSI file will be downloaded to the computer.
Execute the MSI file by following the instructions. A shortcut icon will be created on the desktop.
To use the Power BI, few requirements need to be satisfied.
To start up with, double click the Desktop icon, a welcome screen is displayed.
Click on Get Data Icon to select the raw input data. It supports many input data formats like files, Databases, Azure, or Online services.
In this current context, you will take up the SQL Server database as input data. Select the SQL Server database and click on the connect button. Enter the database details.
Click on the Load button to load the data to Report.
There are three views found towards the left of the Power BI Desktop.
Report View is the View, which shows the actual representation of the data based on the visualizations of the chart selected.
Data View depicts the data in table format. You can cross verify the data to be mapped to the report. Intermediate changes are allowed to adjust the data using the query editor window and need to refresh the data for the same to get refreshed to the report. The below diagram depicts the sample data
Relationship View depicts the pictorial representation of the relationship between columns.
The user can also Edit / Combine more than one table using query editor. The query editor is used to shape and combine the data from multiple tables. However, the original data source is not getting altered. Based on the requirement, only the view of this data source is getting altered. This also has an option of merging queries.
All data manipulation activities are carried out in the query editor. Suppose the current data type of the column is decimal and need to convert to the whole number just right-click the column header and select change type and again select the whole number.
Finally, to apply the query Editor changes, click on the close & apply button in the Home Ribbon Tab. The Power BI Table is added to the report.
The Report View has five sections.
In this context, as the Power BI Table data contains state data, let us create a Map report. Based on the input data and requirement of the user can create different types of visualizations like Pie chart, Bar diagram, Line chart, etc.
To create the visualization, Drag and drop the fields column to the location field, i.e., drag the state column to the report view, A map with the states defined in the table.
In this example, as you created the selected Map Report Chart in the visualization, the data available in the table column state is mapped to the Map control Chart. An in-depth view of the states can be obtained by applying filters for the states.
If the source data changes, you need to update the Excel sheet. The issue mentioned above can be rectified by using Microsoft Power BI by analyzing and building charts.
Step 1 – Power BI Desktop Activities and publishing
Note: Apart from SharePoint online, there are so many options available for which you have to analyze the data and create the charts. I have listed out a few of the options available there once you click on “Get Date.”
SharePoint List – Choose this if your application is an on-premise SharePoint application.
SharePoint folder
Azure, SQL
Oracle
ODBC
SAP HANA DB
Microsoft Exchange
Microsoft Exchange Online
Dynamic 365
Note: Once you published the chart using the desktop version, the same will be pushed to the Office 365 Power BI web version, where you need to perform some actions to set the Refresh time.
Step 2 - Connection update:
Refresh Frequency
Time Zone
Refresh between
Note: At this point in time, you are almost done with the chart preparation in which the data will be refreshed automatically according to the settings made above—the only thing you need to do to make use of this chart on the application page.
Step 3 - Sharing
You can share the chart with your organization or a particular set of people or use it in the application.
Power BI is one of the Microsoft tools. Here you will explain the process of publishing a Power BI report to the Power BI online dashboard and to embe . After installing Power BI desktop, sign in with your enterprise office 365 account for accessing Power BI Application, which is also available for a free trial version, also paid one as per business requirement.
Power BI desktop can connect a variety of data sources like files such as Excel and CSV, Azure (Azure Services), Databases (SQL, and Oracle Server database) and SharePoint Online, etc. and create simple and complex customized business reports.
When the installation is complete, open Power BI Desktop and connect to the data source and create reports. Save the report in Power BI Desktop format, which is the “.pbix” extension. Finally, publish reports to Power BI Application and embed it to SharePoint.
Power BI frequently updates the data in real-time, if you are using a paid version of Power BI and providing options to refresh the data by schedule refresh in a timely manner. If you are using a free version of Power BI, can schedule refresh by timely manner (eight times per day) not frequently.
This section explains how to connect to SharePoint online data for creating reports.
You can create different types of reports using different visualizations. Ex. Pie chart, Donut chart, stacked column chart, etc. You can import charts from the store, from the file. Also, it is possible to import custom visuals to Power BI Desktop. Below are some of the sample charts.
ChicletSlicer: This chiclet slicer has to import from the store.
In the same way, you will create other reports as per business needs.
You can create a relationship between two tables in the Power BI. So, based on the selection of one chart, other charts data get filtered in the reports. Below are the steps to create a relationship.
You can create calculated columns in the tables. For example, while creating a chart using two tables or one table, that particular chart needs a column value that needs to be customized for chart representation. Below are some of the columns which will be used in Power BI charts.
Calculated column using the DAX (Data Analysis Expressions) formula in Power BI and visualization tools. For row-by-row calculation calculated column will be used. For adding Calculated column,
Measures are used to calculate aggregates, such as sum or average of a column.
Sample Formula: Sum of XY = CALCULATE(SUM(‘X’[a]), (‘Y’[b]))
The custom column uses the M language. In the custom column, you cannot perform functions like SUM, AVG, etc. So, it is recommending to use Measures and Calculated column in Power BI for calculations. For creating custom and conditional column.
Publish to Power BI App and Embed in SharePoint online
This section explains how to publish the Power BI file to the Power BI app and embed it in SharePoint online.
This section explains how to refresh the data in reports. You can schedule refresh in a timely manner. Reports can be refreshed eight times per day. Follow the steps to schedule refresh.
1. Open the Power BI app and gear icon and click on “Settings.”
2. Click on Datasets and click on the file which you need to schedule refresh.
3. Go to “Scheduled refresh” and change it to “On” and add the time, click on “Apply.” You can add another scheduled time.
This is an important feature of PowerBI. If data source (In your case SharePoint List) gets updated, your report should get updated on SharePoint Page. You can schedule refresh for your dataset. Click on “…” of your dataset and select Schedule refresh .
This section explains how to change the data source. Consider the SharePoint site is migrated to another environment, the Power BI report also needs to be migrated, in that case, you have to do some changes in the Power BI desktop file and publish it to SharePoint. Make sure that whatever lists used for reports should be the same in the Migrated site also. Below are the steps to change the data source.
SharePoint page can be shared with office 365 users (SharePoint Online users). All users should have Office 365 account with PowerBI service. However, Power Bi report is embedded into this SharePoint page, to view these reports to SharePoint Online users must have access to PowerBI reports also.
It means that you need to manage permission on both locations, PowerBI report, and SharePoint Online Page.
Access to SharePoint : Open SharePoint Page where your PowerBI report is integrated. On the right hand, there is a SHARE button. Click on it. One popup will open to add users for whom you want to give permission to this page.
Enter name or mail ID’s of office 365 users, select permission level as per your requirement, and click on Share
PowerBI Permission : The user also needs permission in PowerBI to access the report. To handle the permission, you can use Manage Permissions. Go to Datasets and click on the manage permissions. Click on Add Users.
Enter office 365 user’s name or mail ID whom you want to share the PowerBI report. Click on Add. After assigning permissions on both locations, the user can view or edit the report as per the permission level.
The main prerequisites to host the Power BI Report in SharePoint are:
To Host the power BI Reports in SharePoint, you need to publish the report. To publish the report, open the report in Power BI and select publish to Web option. This will open up with a dialog box showing Embed code and iframe details. Make a note of these details.
Microsoft Power BI is a suite for business analytics. You can use Power BI to analyze the data, explore data, and create rich reports quickly.
A business analyst or a developer can use open data protocol (OData) endpoints to create Power BI reports. Consider the Dynamics 365 for Operations application is configured to allow Power BI reports.
You can use this tool to analyze and create quick reports and remove the performance bottlenecks to improve the performance of the whole application.
These reports are not only rich and interactive and but also users can make changes without having to rely on another person. Users can pin reports to workspaces themselves.