The CSV data from the previous assignment was not very useful: it contained a lot of technical data and lacked some context. However, it appears that this context is not accessible in the Data Warehouse either. And since we would like some quick insights about this, we have to look further. We arrive at two operational source systems, where the data is available to us.
Let’s continue with the report we built on a CSV file.
Alternatively if you didn’t complete the previous assignment correctly:
Open the file 05-01-Solution
Now to make the data more useful, let’s add data from other tables.
In the next window you will be asked how you want to connect to this database.
The “Navigator” window opens. You will now first see a list of views, below that the tables and finally table-valued functions. Note that there are different icons for this!
You can use the search function for this:
Automagic
Power BI has created a few relationships for you here, so that the data you just loaded could be linked to the data that came from a CSV file. Power BI does this based on the column names, and based on their contents (all values from column A in table 1 must appear exactly once in column A in table 2).
If you find it interesting, you try to find out between which columns the relationship is made and which “direction” it has.
In another source system, we also collected some information about stores. We are now going to load this data.
Try to display the freight cost per store. You do this by adding a Table visualization in the report containing the following two fields:
As you can see, exactly the same amount of freight (“freight”) is displayed for each store. This is obviously not correct!
It indicates that there is no relationship between these fields ('Sales LT Store'[Name]
and '2014-01'[Freight]
). In the next module we will look at how we can shape this relationship.
Here’s the endpoint of this lab: 05-02-Solution
Here is a Walkthrough video
The next module is Module 6: Data Modeling 101. We start with Relations. Below is a complete overview of all available modules: