Loading Data Into Power BI
Loading Data Into Power BI
Source
Load IPL Excel datasets into Power BI
Before we get started, let’s go ahead and download the files we will be working with.
Step 1:
Sign In – By selecting ‘Sign In’ from the top right of the window this dialogue
box pops up. We will not sign in as of yet instead we will work offline.
Load IPL EXCEL datasets into Power BI
Step 2:
Step 3:
Step 4:
Take note: DAX functions require special data types for the
function to work correctly.
Data types in Power BI
Power BI supports the following Data Types:
Power BI Relationships
When we import multiple tables, chances are we will do
some analysis using data from these tables. Relationships
between tables allow the accurate calculation of results
and display the correct information in reports. Power BI
allows us to define relationships between tables, which
enabling us to define visuals which span across multiple
tables and create linked visuals. .
When we import data into Power BI we obtain tables whose columns can be used to create different
types of visuals, measures, and filters. These are useful for extracting insights from data. Power BI
Desktop contains an auto detect feature which “automatically” creating relationships between tables for
you. However, sometimes you might have to create relationships yourself, or make changes to a
relationship. Let’s see how we can do this in Power BI.
Example:
The deliveries table has player stats and no date column, while the matches table has dates, but no
player stats.
Therefore, if we want to analyse player stats over time, these tables need to be joined.
Linking data in Power BI
As in the relationships between SQL tables, Power BI relationships also have cardinality. Each
model relationship must be defined with a cardinality type, the possible relationship cardinality
options are:
Note: the “1” implies unique entries for a given column and the “*” implies multiple values in the
same column.
Setting up a data model
Now we can move onto linking the deliveries and matches tables.
Currently, your ERD should look like the “Before link” Before link
picture on the right. As you can see there is no link
between the two tables.
● deliveries: match_id
● matches: id
1
Creating a relationship in Power BI 3
Before link
After linking the tables your ERD should look like
the “After link” picture on the right.
In this train we learnt how to load data into a Power BI project in preparation
for downstream tasks such as dynamic visual creation. An important
component of such loading surrounds the linking of multiple tables to form an
ERD, allowing analysis to be performed across multiple tables. Lastly, we
observed the various data types supported in PBI, and how these types can be
configured when loading data.
We encourage you to import data with disparate data types in Power BI and
create your very own ERD.
Appendix
Links to additional resources to help with the understanding of concepts presented in the train