Professional Documents
Culture Documents
Using MS Power BI 1
omartrainings@gmail.com
Source Data:
Exercise 01 - Sales Data - CSV - No ETL - V02
Source Type:
CSV File.
Please make sure that you have this CSV file in your email,
which was passed on to you by the Facilitator.
This training exercise prepared for (Please write your complete name here)
First Name _______________________ MI ___ Last Name _______________________
Exercise Duration:
60 minutes maximum
After completion of exercise, please email it to
omartrainings@gmail.com, with subject as “Training
Exercises”.
and Visualization
In this next series of steps that you will be performing, you will be tasked to create reports and data
visualization using MS Power BI desktop. As a final proof that you have indeed created successfully
these requirements, you will be required to show such reports and data visualization using you
Android or IOS cell phones to the facilitator.
These exercises have been designed by the Trainor to be repeatable that is you can always use these
exercises to do the steps enumerated herein, at a time that you need to refresh on the steps you
have done before.
https://www.microsoft.com/en-
ph/download/details.aspx?id=45331
The above URL is the OFFICIAL website where you can download the latest version of MS Power BI.
You also need to know what version of MS Power BI you are using. To do this, do the following
instructions below:
As some of you might already know, Power BI Desktop gets updated each month. These new version
are packed with new functionalities. Normally, when you encounter an issue and need help through
the forums or with a colleague, one of the first questions you will be asked is " What version of
Power BI Desktop are you running?"
You can easily find out by clicking on File -> Options and
Settings -> Options in the toolbar.
The Options dialog box will open and you can select Diagnostics to display the version. In the image
below.
Once you have successfully logged in using your company provided user account and email ID, you
will see then following screen images displayed (with your name displayed on the upper right hand
corner of the screen image:
Logging in to your account in Power BI Desktop, is tantamount to also logging in to Power BI Service
(the cloud service of Power BI). This cloud service can be found at this URL:
https://powerbi.microsoft.com/en-us/
After you have logged-in to Power BI desktop, you should be
seeing the screen image above, in which case the first step
we need to do is Get Data (please refer to image below):
An important note
© Copyright All Rights Reserved Omar F. Abesamis September 2018
Trainor Info: Mr. Omar F. Abesamis/0905-406-6374/omartrainings@gmail.com
INTRODUCTION TO MS POWER BI DESKTOP, SERVICES AND MOBILE
For the sake of brevity, we will not present the same screens used on logging in to your Power BI
5
desktop, so as to enable the participants to directly get to the main topics of the exercises. Thus, in
succeeding exercise, the discussions and images above regarding logging-in and accessing to your
Power BI desktop will no longer be presented in the exercise material. You will be expected to have
logged-in successfully to your Power Bi desktop.
Getting Data
This will then open up a new dialogue screen (please see image below):
Since our data is a Comma Separated Value file (or a CSV),
choose the CSV option, based on the image presented below:
You should now have created a folder in your laptop, which I suggest should be as foll ows:
After successfully connecting, you should now be able to see the following screen:
The above image shows you a preview of the data to which Power BI Desktop (which from this point
on we will call as PBID), has connected to. The word connected means to “be able to establish a data
connection with this data type at this particular folder”.
So it is important that you do not move this data source from
the folder where you connected to, otherwise PBID cannot
update its data connection.
The first step we need to do is first look at the data, to see if there are problems with this data. Data
cleaning and transformation is an important aspect of PBID, and a clean data means a clean report
and clean data visualization.
Power BI Desktop is intended to finally enable users to make
sense of their data, and to do this it must be able to clean
the data, before doing any report.
To do this, which is looing first and then cleaning the data (if needed), then we must not LOAD the
7
data yet (Loading is suggested if you have cleansed your data first).
Choose Edit, to enable us to query and review the data first
as shown below:
And which I will now, for easier navigation, and easier identification, will subdivide the regions
within this screen as follows (please see image below):
The upper portion is the familiar Ribbon of the Power BI Desktop.
The rightmost section is what I call as the Query Editor/Query Section.
The leftmost portion is what I call as the Table View Section.
The middle portion what I call as the Data Section.
All these four sections of the screen act and work together so we can perform data cleansing and/or
data transformation, depending on the requirements set before us.
We are now in the Power Query Editor Screen. And this power query editor screen is like a “tape
recorder (but an intelligent one at that)”, which records literally our cleansing and/or data
transformations that we do for this data.
Why?
So that, once we update the data, it will remember for us the steps we performed in the data query,
and automatically execute the same data cleaning and/or data transformation for us again, without
us doing it again and again manually repeating the same steps! What power!!!
It memorizes our data cleaning and transformation steps, so
that when we update our data (same data file but with changes
and additions), it will automatically do this for us.
Now, a very important note.
What we clean and transform in PBID, DOES NOT AND WILL NOT
CHANGE OR ALTER YOUR ORIGINAL SOURCE DATA!!!
It will only affect our PBID data. The doctrine behind this “don’t change my original data” can be
found in most accounting processes, which is the preservation of original data, for purposes of
checking data integrity.
Now let’s do some data cleansing and/or data transformation steps, and watch the Query Section as
it records these steps for us.
Looking at the data section, we can find the Sales Rep data column. We would like to change all the
9
Sales Rep data from its Proper format (Caps on first letter), to an UPPERCASE format. This is a Data
Transformation process.
To do this, simply click your mouse on the Sales Rep Column
(please see image below).
This approach is much simpler, and provides a lot of the data transformation options by simply using
the right click option.
Do the following steps:
10
After you have completed the Transform Trim, Clean, and UPPERCASE, you should now be able to
see the following transformation in your data, as well as the Recorded Query instruction of such a
transformation recorded by the Power Query Editor for this session. And that goes for all or any
transformation which you perform, these will be recorded and previewed for you. 11
Now for your seatwork (that means you have to do this on your own), do the following
transformations:
Supervisor UPPERCASE
Customer UPPERCASE
12
Close and applying means that we are now ready to create reports and data visualization.
Click Close and Apply
You should be able to momentarily view this screen image:
13
It is not a blank screen but is indeed a screen with no reports/data visualizations yet.
The following screen have been prepared so you can understand better what is happening here.
14
15
Click the Matrix icon. You should be able to see the next screen:
16
Now drag from the data fields on the right section the
following into the parameters section on the lower right
portion:
Customer to the Rows
Regions to the Column
And the Sales (amount) to the Values.
You should now be able to see the following screen:
17
We will need to adjust the data font size so we view the report better.
To do this, click on the Format icon as shown in the image below:
Under the Format Icon, choose Grid, Text Style and change
size to 20.
18
Now press the F12 (shortcut for Save As) function key and
19
save it as Version 02, as shown below:
Clustered Bar Sales Amount Drag the customer field to the Axis
Drag the Sales Amount to the Value
Change the Title text font to 20
Clustered Column Sales Amount Drag the Region field to the Axis
Drag the COGS Amount to the Value
Change the Title text font to 20
At this point, once you have done this, save as Version 03.
Now please email the PBIX file to me.
This is the end of Exercise 01.