powerbi-training-en

06-02 Improving your Dataset: Cleaning your Data Model; introduction of Calculated Columns

With all relations in place, we can perform all kinds of analyzes on this data model. Before we continue, however, let’s make a short stop: could we perhaps make this model a bit more user-friendly?

Preparation

Let’s continue with the report we built on a CSV file.

Alternatively if you didn’t complete the previous assignment correctly:

Open 06-01-Solution

Cleaning your model and calculated columns

In order to make the current model - which comes directly from a “3NF” source system - more readable, we can apply some fixes easily:

Basic cleaning of the data model

To keep the model more readable, we can remove or hide unnecessary columns.

To make the model more readable, do the following:

Calculated Columns

In the “Data” view of Power BI, you can easily view what data is currently in the data model.

We can add columns here that are filled based on a DAX expression. We call this “Calculated Columns”.

Calculated Column

Calculated Column

Now when you go to the Report view, you will see that there is one less table, and the name of a product category is displayed under the table Product Subcategory. It has a small “F(x)” sign next to it to indicate that it is a calculated column.

As you can see, this makes it relatively easy to “flatten” your model and make it more accessible to Power BI users.

Solution

Here’s the endpoint of this lab: 06-02-Solution

Video

Here is the Walkthrough video

Next modules

The next module is Module 7: Introduction to Power Query (GUI). Below is a complete overview of all available modules:

  1. Introduction Power BI Desktop
  2. Reporting on a Dataset
  3. Visuals and interaction
  4. Drillthrough
  5. Self-service reporting
  6. Data Modeling 101
  7. Introduction to Power Query (GUI)
  8. Publishing and Collaboration in Workspaces
  9. Calculated Columns in DAX