Introduction To Microsoft Power Bi
Introduction To Microsoft Power Bi
Introduction To Microsoft Power Bi
POWER BI
M.O. CUDDLEY
Copyright © 2016 M.O. CUDDLEY.
ISBN-13: 978-1533373892
ISBN-10: 1533373892
BOOKS BY M.O. CUDDLEY
What this means is that Microsoft is bringing the power of data analysis and
visualization to every user in the organization and not just the technical or IT
team. Organizations now have the ability to analyze and visualize data across
different line or business applications, whether that data is resident on
premises, in the cloud, or in a mix of both places. This experience is consistent
regardless of the device the user is accessing it from – whether it is a desktop,
laptop or mobile device.
With Power BI, Microsoft is offering organizations the ability to have a single
view of their most critical data, as well as monitor the health of their
businesses at every point in time. Cool right? What’s even better is that the
basic features of Power BI are free!
FEATURES OF POWER BI
In this section, we are going to look at the features that individuals and
organizations can get when they decide to use Power BI.
1. Easy to setup: With Microsoft Power BI, you can get started in
seconds. Signing up for the online service is FREE and you can take
key metrics for your business from all the different sources.
3. Real Time reports: Microsoft Power BI offers interactive
dashboards that display the changes to your data as they occur in
real time. This means that you can notice trends, solve problems
and seize opportunities as they occur. There are no more
unnecessary delays with Power BI.
4. Ask questions and get answers: This is by far, one of my favorite
features of Power BI. You can ask questions based on the data in
your report and Power BI will provide you with the answers. It
works similarly to a Google search. When you begin typing your
questions, Power BI will give you suggestions on all possible
questions that are similar to the one you are typing and that can be
Any organization that wants to succeed should stay in the know of important
metrics and trends going on within and outside their organization. They need
key insights into their performance, profitability as well as their ranking or
position among their competitors. They need to be able to spot trends as they
happen, react to scenarios that require immediate attention, as well as seize
new opportunities as they occur.
Imagine having to make a decision on something and waiting for two days to
get the report you need to make that decision. By the time the report gets to you,
the data it contains is already two days old. If you happen to be out of the
office at the time the report is generated, you are unable to view it on any of the
mobile devices in your possession and would have to make a trip back to the
office to work with it. Apart from the information presented in the report, you
are unable to ask other relevant questions based on the data in the report
without calling on your team, probably because the report is not interactive.
You don’t need all that hassle just to get the insights you require. Today’s
business decision makers require fast access to correct data from whatever
location they are, and in a secure manner. This is what Microsoft Power BI
offers in a nutshell.
BUILDING BLOCKS OF POWER BI
Everything you do in Power BI can be broken down into a few basic building
blocks. If you understand these building blocks, you can expand on each of
them with the goal of creating elaborate and complex reports. Let’s take a look
at these basic building blocks.
of a number of charts (pie, line or bar charts), maps and graphs that
display the information you want to pass across. The image below
shows a sample report in Power BI.
4. Dashboards: In the world of Power BI, a dashboard is a collection
of visualizations on a single page, which you can share with others.
While it is visually similar to a report, a dashboard has to fit on a
single page and can be shared with other users who will be able to
interact with the data presented in the dashboard. If you create a
dashboard and share it with the sales head for example, he or she
should be able to interact with it and view new information
different from the one which is clearly visible on the dashboard,
based on the data present. The image below shows a sample
dashboard in Power BI.
5. Tiles: In the world of Power BI, a tile is a single visualization on a
report or dashboard. For example, if you have a report or
dashboard containing a pie chart, a map and a graph, each one of
them is known as a tile. So, in that report or dashboard, you have
three tiles. Power BI enables you to move and arrange your tiles in
any way you want to present your information. The image below
shows a single highlighted tile, surrounded by two other tiles.
Now that you have a good understanding of the building blocks of Power BI, it
is time to explore the tools that make it all happen. Power BI tools make it
possible for you to create datasets, reports and dashboards as well as share
these with the people who need them.
POWER BI TOOLS
We defined Power BI as a suite of Business Analytics tools that enable us
analyze our data and share the insights we derive. In this section, we are going
to take a look at the different tools that make up our solution.
interactive visualizations
2. Power BI Service: This is a cloud based service that you
subscribe to. It enables you create and publish your Power BI
reports. You can share the reports from this service with other
people who can either view them within the service or in the
mobile app.
3. Power BI Mobile: With apps that are available, and can be
downloaded from the Windows store, App store, and Google Play,
Power BI gives you the ability to stay connected to your data from
anywhere and at any time. Having a 360 degree view of your data
on the go is sure to keep you ahead of trends as you stay focused on
what matters most to you. You can view your personalized
premises data sources and refreshes the online data to make sure
that it is always current. You can schedule this refresh to a time that
is suitable for you, for example, hourly, daily or weekly.
Now that you have a good understanding of the features and capabilities of
Power BI, as well as the tools you need to make all the magic happen, it is
time to dive in and get your hands dirty. The next section explains the detailed
steps required to get you started.
CHAPTER ONE
GETTING STARTED
INSTALLING THE POWER BI DESKTOP
APP
The steps listed below will show you how to install the Power BI Desktop
application.
3. Read and accept the terms in the License Agreement. Click next to
continue.
If you do not have an existing Office 365 subscription and would like to
subscribe to the Power BI online service, follow the steps below.
1. Browse to the Power BI portal here and click on “Get started free”.
4. Once the address in the address bar looks like the one shown in the
image below (https://portal.office.com/signup), press Enter on your
keyboard.
Why should you sign up for Power BI Pro when there is a free version of the
service? Because the Pro version gives you access to the following features
which are either limited or not available in the free version.
2. The number of times you can refresh your data per day is up to eight
times, as opposed to once in the free version. This means that if you
have reports or dashboards that use data from your on premises
data sources, you can refresh your data up to eight times a day with
the Pro version and only once daily with the free version.
3. For those of you who will like to use the REST API to push data
from your applications into a Power BI dataset, you can push up to
one million rows per hour with the Pro version as opposed to ten
You should note that every user consuming Power BI Pro content requires a
Power BI Pro license, and your Power BI tenant can have a mix of free and
Pro licenses if you want to have that. Also, the price is listed per user per
month, but an annual commitment is required.
5. If you clicked “Yes” in step 4, the page below comes up. Fill in the
required details and click “Continue”.
6. If you will like to add the Power BI Pro subscription to your
existing Office 365 tenant, click “Sign in” at the top of the page to
do so. If not, just fill in the details and proceed to your Power BI
Pro account.
Please note that you will be required to fill in your debit or credit card details
to make the purchase.
INSTALLING POWER BI MOBILE
To install the Power BI app on your mobile device, follow the steps below.
To obtain the data from these different sources so that you can analyze and
produce useful insights from them, you have to connect your Power BI
application to these different sources.
Whether you’re making use of the Power BI Desktop application or the Power
BI online service, you can have a similar experience with connecting to your
data sources, and this section will show you exactly how to do that.
GETTING DATA FROM EXCEL FILES
This section shows how to connect to an Excel file in order to get data into
Power BI. Since this can be done using both the Power BI Desktop application
and the Power BI service, this section will show you how to use both.
1. Launch Power BI Desktop and click “Get Data”. You can also
access the “Get Data” icon from the ribbon on top the page.
2. Select “Excel” and click “Connect”.
3. Browse to the location of the Excel file and double click it or click
on it and select “Open”
4. Select the sheet containing the data you want and click “Load”. You
can select multiple sheets by checking the check box beside the
sheet. Once a sheet is selected, a preview of the data contained in
that sheet is generated on the right.
6. Click on the drop down arrow beside each sheet to view the data
columns inside them. Check the check box beside each column you
want to see in your report (from the ‘Fields’ section) and select the
visualization you want your data represented with, from the
‘Visualizations’ section.
That’s it. You have successfully connected to an Excel file and loaded the data
into Power BI, using the Power BI Desktop application.
1. Login to the Power BI Service here and click “Login”. Enter your
username and password and click Enter.
You’re all done. You have successfully connected to an Excel file using the
Power BI Service.
GETTING DATA FROM A SQL SERVER
DATABASE
USING POWER BI DESKTOP
To get data from a SQL Server database using Power BI Desktop, follow the
steps below.
2. Select “SQL Server Database” from the list and click “Connect”.
3. Input the SQL Server instance you want to connect to and
optionally, the database name. Click “Ok” once done.
4. Input the credentials to connect to the database and click “Connect”.
password.
2. From the “Get Data” screen, click on “Get” in the “Databases”
subsection of the “Import or Connect to Data” section.
3. You can choose either “Azure SQL Database”, “Azure SQL Data
Warehouse”, “SQL Server Analysis Services” (for on-premises
SQL server) or “Spark on Azure HDInsight”.
Please note that when connecting to the SQL Server Analysis Server instance
on-premises, you will require a Power BI Gateway.
3. Choose the gateway that best suits your needs (either ‘personal’ or
‘for enterprise use’) by clicking “Download” under the appropriate
option.
4. Launch the installer from the downloaded package.
PERSONAL ENTERPRISE
Learn more Learn more
Features
Coming
Import data and set up scheduled refresh •
soon
10. Apply the appropriate visualizations for the information you are
interested in. In this case, I was interested in knowing the category
of things I like most on Facebook. It was interesting to see TV
shows, Movies and Video games getting the most number of likes
from me. Typical!
GETTING DATA FROM OTHER WEB SOURCES
Data contained in other web sources can be imported into Power BI and used
5. Click the checkmark beside the table containing the data you are
interested in. A preview of the data appears on the right. Select all
required tables and click “Load”.
from Twitter. If you have the need to analyze Twitter data, you can find the
steps written by Jeff Stokes in his blog here (https://azure.microsoft.com/en-
gb/documentation/articles/stream-analytics-twitter-sentiment-analysis-trends/).
To wrap up, if you need to analyze data in Power BI, you will have to connect
to the source of that data within your organization or online. If the source is
present in the “Get Data” list, simply click on it and follow the wizard to
complete the connection process. If it isn’t listed, click on “Other” from the
“Get Data” list and select “Blank Query”. Type in your connection parameters
and connect to the data.
CHAPTER THREE
Now that you have a good understanding of how to get data for analysis in
Power BI, it is time to create some amazing reports. Ready to get started?
first block on the list is the dataset. If you can’t remember what a dataset is,
skip back to the “Building Blocks of Power BI” section for a quick refresher.
The dataset is the backbone of our reports and dashboards. In simplistic terms,
whatever report you want to see, the data needs to be present in the underlying
dataset. If the data is not in the dataset, you can’t visualize that information.
Got it? Let’s get right to it then.
In this chapter, we will look at creating datasets by getting data from a single
source or combining data from different sources. Let’s get started.
CREATING DATASETS
It is a known fact that the data needed for a report or dashboard can come from
many different sources. When this data is brought into Power BI, it has to be
combined into a single dataset so create the required reports or dashboards.
If the data you need for a report is stored in a single source e.g. one Excel
In this section, we will create datasets by using data from a single source, as
well as combining data from different sources.
To create a dataset from a single data source, follow the steps below.
Click the checkmark containing the table whose data you want to
add to your existing dataset.
4. If you need to edit the data before importing it into Power BI, click
on “Edit” beside “Load” at the bottom of the screen. In this case, I
want to delete some columns before importing the data into Power
BI, so I’m going to do just that.
5. The data opens up in the Query Editor window.
6. Right click any column you want to delete and click “Remove”. In
this case, I’m going to delete two columns so I have just the
columns I need.
7. Once done, click on the dropdown arrow beside “Close & Apply”
and select “Close & Apply” from the list. The data is loaded into
the Power BI application.
8. Now that we have the data we need in two datasets within the
Power BI application, it’s time to merge both datasets into one.
Click on “Edit Queries” from the Menu ribbon.
9. Highlight the datasets you want to merge by holding the “CTRL”
key on your keyboard down and clicking each dataset. Click on the
10. From the “Merge” window, select the table you want to merge with
the already selected table and click on a matching column. Click
“OK” once done. (Please note that the tables you combine need to
have a matching column where they can be joined. In this case, the
you want to include in the first table. (In this case, I selected the
“Country Name” and “Population” columns from the “Population”
table because I want to add them to the “Top Earners” table)
12. Click “OK” once done.
13. The selected columns get added to the dataset.
14. Rename the columns to match the naming convention of your base
dataset and remove duplicate columns. (In this case,
“NewColumn.Population” will be renamed to “Population” and
“NewColumn.Country Name” will be removed. This is because it
contains the same data as the “Country of Origin” column. To
rename a column, simply double click on the header and type in the
new name).
15. The dataset now looks exactly how I want it to. To save this, I’ll
click on “Close & Apply” from the top ribbon. The “Top Earners”
dataset now contains the “Population” column which I got from a
credentials).
4. Connect to the data store using the Power BI application.
5. Load the data you need into the Power BI application.
6. Find matching columns with which to join the tables.
7. Combine the data as appropriate.
REFRESHING DATA IN A DATASET
If data is already imported into Power BI and changes are made to the source
data, those changes can be brought into Power BI by using the “Refresh”
functionality. To do this, follow the steps below.
The first thing to consider here is the right visualization for the type of report
you are trying to create. For instance, if your data contains geographical
information (e.g. States, countries, cities), a map will be great for
visualization.
The beautiful thing about Power BI is that you can try out multiple
visualizations until you find the one that is right for you. To do this, follow the
steps below.
select the columns you want to see in your report. The columns are
listed under the “Fields” section on the right.
2. Once the appropriate columns have been selected, click on the
CREATING REPORTS
Now that you can create datasets and visualizations, it is time to put them
together in a report. You can represent different facets of the data in a dataset
using different visualizations. Power BI makes it easy to move data around the
report dashboard as well as rearrange data in the way you deem best.
Let’s go ahead and create a report from the dataset we created in the previous
section.
The first report I’m going to create is one that shows the name of the Earners
and their corresponding net worth. To do this, I’ll select the “Names” and
“Net-worth” fields from the “Fields” section and select the visualization I
want from the “Visualizations” section. To represent the same data using
different visualizations in the same report, I can simply copy the source tile
and paste it on the report canvas. I can then apply two different visualizations
to the tiles.
The second report I’m going to create will represent two different facets of my
data. I’m going to show the net worth by names (because I want to know who
my biggest top earner is), the net worth by gender (because I’m interested in
the gender that’s dominating my top earners list) and the net worth by country
(because I’m interested in knowing which countries produce the highest
earning members of my fictitious company).
I did find some pretty interesting facts about my data. Potter Rice being the
biggest earner is no longer news to me because I found that out from the last
exercise. However, take a look at the gender chart. The males have more than
double the net worth of the females! I also got to know that France produced
the biggest earner in my fictitious company.
Now let’s assume these pieces of information are important to me. Can you see
how easy Power BI made it for me to discover them?
CHAPTER SIX
CREATING DASHBOARDS
If you’ve gotten to this part of the book, good job! You’re almost done with
learning all the basic tricks of Power BI. In this section, we’re going to create
dashboards.
It’s very easy to upload our already created report from Power BI desktop to
the Power BI service. There are a number of ways to do this, but I’m going to
use the “Publish” option. To do this, all I need to do is follow the simple steps
below. Isn’t it lovely when it’s so simple?
1. From the Menu ribbon on the Power BI Desktop application, click
on the “Publish” button.
6. If the “Pin” button is clicked, you are asked to select the dashboard
where you want to pin your report. You can select an existing
dashboard or create a new one. In this case, I created a new one
which I named “Top Earners Net Worth”. Click “Pin” after that.
7. After pinning all the reports you want to your dashboard, click on
the name of the dashboard from the “Dashboards” section on the
left.
Just for kicks, let’s go ahead and ask some more questions.
Who is the oldest top earner? Eric Banner! I can also see from the same report
that the youngest top earner is Samantha Briggs. I don’t need to ask that
question again.
How many countries have top earners in my fictitious company?
There’s so much you can do with Power BI. Give it a go and have some fun!
CHAPTER SEVEN
information to help your company take its next step. Now what?
If a report or dashboard doesn’t get to the right people who need it, it’s as
good as being non-existent. This brings us to the next section of our Power BI
knowledge quest. How do we share our reports and dashboards with others?
The good news is that it is very easy to do this. What you need to remember
before doing this is that everyone you share your report/dashboard with MUST
have a Power BI license. So, if you’re on the free version of the Power BI
service, just make sure to assign free licenses to everyone who needs to
interact with your report. If your report/dashboard was created with Power BI
Pro, you have to assign Power BI Pro licenses to everyone who needs to
interact with your report.
Now that we have that sorted out, let’s go ahead and share that dashboard!
2. Enter the email addresses of the people you want to share the
dashboard with in the “Email addresses” section.
3. Include an optional message (which is what the recipients will see
to know what your dashboard is about).
4. Select whether or not you want them to be able to share the report
as well.
5. Click on “Share”.
6. That’s it. You’re all done. The recipients will receive an email with
a link to your dashboard.
POWER BI FREQUENTLY ASKED QUESTONS
What is Microsoft Power BI?
Power BI provides all sorts of features to help you get started exploring data in
a whole new way. Power BI Pro provides all of the same great features in
Power BI, plus additional features like more storage capacity, scheduling data
refresh more frequent than daily, live data sources with full interactivity,
groups, and more. Learn more about the differences between Power BI Pro and
the free Power BI.
Power BI and Power BI Desktop are free. There is a 60-day free trial
available for Power BI Pro. After that, Power BI Pro is $9.99/User/Month.
Learn more about our pricing Power BI pricing.
Power BI Desktop is a free desktop application you can install right on your
own computer. Power BI Desktop works cohesively with the Power BI service
by providing advanced data exploration, shaping, modeling, and report
creation with highly interactive visualizations. You can save your work to a
file, and publish your data and reports right to your Power BI site to share with
others.
Note: Work email addresses ending in .gov and .mil aren’t currently
supported.
You can also view on-premises SQL Server mobile reports with the Power BI
iOS apps:
Yes. Power BI has native apps for Android phones, iOS devices, and
Windows 10 devices. Download one of the Power BI mobile apps from its
respective store:
Apple App Store
Google Play
Windows Store
The list of data sources for Power BI is extensive, but it can be grouped into
the following:
Content packs for services are pre-built solutions for popular services as part
of the Power BI experience. A subscriber to a supported service can quickly
connect to their account from Power BI and see their data through live
dashboards and interactive reports that have been pre-built for them. We’ve
released content packs for popular services such as Salesforce.com, Marketo,
Adobe Analytics, Azure Mobile Engagement, CircuitID, comScore Digital
Analytix, Quickbooks Online, SQL Sentry, and tyGraph. Over the coming
months, we’ll extend this to include content packs and integrations for Sage,
SpaceCurve, Sumo Logic, Zuora, Planview, Insightly, Troux, Inkling, and
others.
To use the Power BI service for free, you just need a Web browser and email.
You can download the Power BI mobile apps from their respective stores:
App Store
Google Play
Windows Store
Webinars
You can purchase Power BI Pro licenses directly or chat with a representative
at www.powerbi.com.
You can also find a Microsoft Partner to help you with your Power BI
implementation.
Learn more about Power BI security, privacy and compliance in this Power BI
Security whitepaper and our Power BI security support article.
Source: This Power BI FAQ was gotten from the official Microsoft Power BI
site which you can find here.
(https://powerbi.microsoft.com/en-us/documentation/powerbi-frequently-
asked-questions)
LEARN MORE
This book is meant to serve as an introductory guide which will take you from
the point of having zero or very little knowledge about Power BI, to the point
where you can comfortably produce reports and dashboards that provide useful
organizational insights.
If you will like to know more about Power BI, visit the official Power BI
learning site here.
ABOUT THE AUTHOR
M.O. Cuddley is a Microsoft Certified professional with a Microsoft Certified
Solutions Expert (MCSE) certification in Business Intelligence.
M.O. Cuddley has been working with the Microsoft SQL Server and Business
Intelligence platforms for five years and has delivered solutions across