powerbi-training-en

09 Calculated Columns in DAX

With calculated columns you can have a calculation performed in a column for each row of a table. We saw an example of this in the previous module, where in each row in the product table the corresponding subcategory and category was looked up via the RELATED function.

In this module we look at other possibilities of calculated columns.

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-02-Solution

Calculations

When defining calculated columns you can use a whole arsenal of DAX functions. From very advanced (which actually run a new query for every row in the table) to basic functions such as addition and subtraction.

Below are a few commands - see how far you can solve them with a calculated column:

Foute sortering

Correcte sortering

Visual adjustments

After adjusting these definitions and codes, it is time to adjust some things in your report.

Doelopmaak rapport

Solution

Here’s the endpoint of this lab: 09-Solution

Video

Here is the Walkthrough video

Last module

This was the last module in this course. Want more? Wortell Smart Learning also offers various in-depth training courses in the field of Power BI. For more information, visit https://www.wortellsmartlearning.nl/.

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 (current module)