Professional Documents
Culture Documents
Participant Kit
Data Query
The query editor in Power BI is used to extract, transform and load data files into the Power BI.
Click on Get Data (red box) and select the source, from which data needs to be loaded as shown in
the following figure.
Browse to the location, select the file and click on open as show in the fig. below
PBI-3000 Microsoft Power BI
Participant Kit
A navigator window will open up, select the required tables or sheets from the left-hand side (Green
box) and click on transform data (Red box) to load the data in power query editor.
Data Transformation
After clicking on transform data, power query editor will get open.
The user can also click on transform data from ribbons to enter the power query editor as show in
fig below.
Fig below shows the power query editor used for data transformation
On LHS queries section show the tables loaded and on RHS applied steps show the data
transformation steps applied on a particular query
PBI-3000 Microsoft Power BI
Participant Kit
Click on the model tab (Red box), the tab will show all the tables pulled by the query
To create or edit relationship between tables click on manage relationship in the home tab
PBI-3000 Microsoft Power BI
Participant Kit
Select New to open the Create relationship dialog box, where we can select the tables, columns,
and any additional settings we want for our relationship.
In the first drop-down list, select Vendor as the first table, then select the Vendor code column.
This side is the one side of our relationship.
In the second drop-down list, Sales is selected as the second table. Select the Vendor ID column.
This side is the many side of our relationship. Accept the defaults for the relationship options, and
then select OK.
PBI-3000 Microsoft Power BI
Participant Kit
Dax Modelling
Data Analysis Expressions (DAX) is a library of functions and operators that can be combined to build
formulas and expressions in Power BI, Analysis Services, and Power Pivot in Excel data models
Step 4
User can create new measure and calculated columns from Calculations in the table tools
Visualization
From the fields section select the values column and axis column and drag it to Axis and Values in
Visualization
PBI-3000 Microsoft Power BI
Participant Kit
Axis
We want sales data by Product Category, so drag the product category first. We want to drill down the
data item-wise so, I will add product in the Axis field.
Values
Now, we want to show number of items sold in each product category. For this, let's add Sales in
values field.
Legend
The Legend field is also a useful feature provided by Stacked Bar Chart. It is used to represent our
bar in different colors with different categories.
Tooltip
When you need to achieve the functionality on hover of the bar chart, tooltip is very useful.
Ex: On hovering over the bar chart, I want to show final bill amount and sales.
Drag both the fields in tooltips. After setting all these above properties, our chart will look like the
following.
PBI-3000 Microsoft Power BI
Participant Kit