Mastering DAX

3 days
UDAX
3 days

Upcoming Sessions

Date:

Format:

Price:

Location:

Book now

Date:

Format:

Price:

Location:

Book now

Date:

Format:

Price:

Location:

Book now

Date:

Format:

Price:

Book now

Interested in a private company training? Request it here.

An Introduction to DAX

This chapters provides a introduction to the DAX language. Students will learn the different use-cases of the DAX language.

  • DAX Use Cases
  • Understanding Calculated Columns and Measures
  • Building Tables with DAX
  • DAX as a Query Language
  • DAX for Row Level Security
  • DAX Patterns
  • LAB: Creating Calculated Columns, Tables and Measures in DAX

DAX Studio

A good tool can make the job a lot easier. And DAX Studio is a super handy tool for DAX developers, independent of whether you are using Power BI Desktop, Excel or Visual Studio in the end. This module explains why and how to use DAX Studio. But it also introduces the structure of DAX queries.

  • Introducing DAX Studio
  • Installing DAX Studio
  • Writing DAX Queries: EVALUATE, ORDER BY and START AT
  • Constructing Tables with FILTER, DISTINCT, ROW, SELECTCOLUMNS and SUMMARIZECOLUMNS
  • Who's eating up the resources: Querying Meta-Data
  • Power BI DAX Query View
  • Profiling DAX Queries
  • LAB: Running and Profiling Queries in DAX Studio

DAX Expressions

When writing scalar expressions a good understanding of the DAX data types, operators and functions is needed.

  • DAX Data Types
  • Getting Started with Constants
  • Mathematical, Boolean and String Operators
  • The Most Important Scalar Functions in DAX
  • LAB: Evaluating and Writing DAX Expressions

Creating DAX Measures

The CALCULATE function is probably the most used function in DAX when you are defining measures. To really understand how to use the CALCULATE function, you must have a good understanding of the concepts of row and filter contexts, which are also explained in the chapter.

  • Introduction to Evaluation Context
  • The CALCULATE Function and the Row and Filter Context
  • Aggregation Functions
  • Defining Table Scopes
  • Using ALL and VALUES
  • LAB: Using CALCULATE

Using CALCULATE for Time Intelligence

Nearly all analysis happens against different time periods. DAX includes time intelligence functions that enable you to manipulate data using time periods, and then build and compare calculations over those periods. Common challenges such as year-to-date, growth calculations, moving averages etc. are covered in this module.

  • Creating Calendar Tables using CALENDAR and CALENDARAUTO
  • Working with Multiple Data Tables
  • Mark as Data Table
  • Computing YTD/QTD and MTD Totals
  • Comparing Data over Time using DAX
  • Calculating Rolling Totals
  • Calculating Moving Averages
  • LAB: Implementing Time Intelligence

Working with Calculation Groups

Often measures such as a year-to-date (YTD) calculation have to be repeated for multiple base measures. Calculation groups provide a template with which these repetitive measures can be easily created and maintained.

  • The Need for Calculation Groups
  • Creating Calculation Groups
  • Format Strings in Calculation Groups
  • Excluding Measures from Calculation Items
  • LAB: Implementing a Calculation Group and Calculation Items

More on Measures: Iterators

When you need to iterate through data iterators such as SUMX become useful. This chapter discusses how to work with iterators, and how to apply context transitions within iterators.

  • SUMX Aggregation Function
  • Linking to Different Tables with RELATED
  • More Iterators: RANKX, CONCATENATEX, ...
  • Using Variables in DAX
  • Context Transition
  • LAB: Using Iterators in Measures

Inspecting and Controlling the Execution Context

Often a measure only makes sense in a certain context (e.g. only relevant at the month level, but not the year level). In this chapter DAX functions are covered which allow you to inspect the current context such that you can protect your measures. A typical use case are percentage of parent calculations, which are discussed in detail.

  • Why do we need the context?
  • HASONEVALUE
  • ISFILTERED
  • ISCROSSFILTERED
  • ISINSCOPE
  • SELECTEDVALUE
  • ALLSELECTED
  • Handling Hierarchies in DAX
  • Calculate Ratio's to a Parent Subtotals
  • Raising Errors in DAX
  • Using DAX in Visual Calculations
  • LAB: Inspecting Execution Context

Advanced DAX Constructs

In this last chapter some of the more advanced DAX topics are introduced.

  • CALCULATE Modifiers USERELATIONSHIP, CROSSFILTER, ...
  • Expanded Tables
  • TREATAS
  • CALCULATETABLE
  • Windowing Functions: OFFSET, INDEX and WINDOW
  • LAB: DAX Workshop

Power BI is a suite of business analytics tools to analyze data and share insights. DAX (short for Data Analysis Expressions) is a language used in Power BI and Analysis Services Tabular Models to create derived calculations such as year-to-date, percentage of total, etc. In this course you will learn how to use DAX to create measures and other derived calculations. You will also learn to use DAX as a query language.

This course is intended for people who have a background in Business Intelligence and have already built data models in Power BI or Analysis Services. U2U also offers a 3-day course Analyzing your data with Power BI for Business Users targeted at people without any skills to build a Tabular Model.

Contact Us
  • Address:
    U2U nv/sa
    Z.1. Researchpark 110
    1731 Zellik (Brussels)
    BELGIUM
  • Phone: +32 2 466 00 16
  • Email: info@u2u.be
  • Monday - Friday: 9:00 - 17:00
    Saturday - Sunday: Closed
Say Hi
© 2024 U2U All rights reserved.