Optimizing DAX Video Course

This video course teaches you how to optimize queries and measures in DAX.

DAX is the native language of Power Pivot for Excel, Power BI Desktop and SSAS Tabular models in Microsoft SQL Server Analysis Services. This video course is aimed at users of Power BI and Analysis Services developers who already know the DAX language and want to learn how to optimize DAX formulas and models for improving performance.

The goal of the video course is to enable you to find bottlenecks in DAX calculations using Performance Analyzer and DAX Studio, providing the knowledge to improve the performance by using different DAX formulas or by changing the data model, when required. The video course is made up of over 29 hours of lectures covering the formula engine and the VertiPaq storage engine – other hours of lectures will be added by the end of 2023 with the additional sections for DirectQuery and composite models. You can watch the videos at any time and the system will keep track of your progress.

The companion content available to the students includes:

  • The PDF version of Optimizing DAX The book includes a detailed description of all the modules of the video course. You have access to draft versions before the book is published by the end of 2023.
  • PBIX files for all the demos
  • DAX code for all the demos
  • Backup of SQL Server databases to refresh the PBIX files
  • BIM file to create Analysis Services databases used for demos with large models

Students have access to a private discussion area where they can interact with the instructors, asking questions related to the lectures and the exercises.

Prerequisites: Students need a good knowledge of the DAX Language, and a previous experience using Power BI Desktop or Analysis Services Tabular. You may acquire this knowledge by following the Mastering DAX Workshop, or by having equivalent real-world experience.

Collapse allCurriculum

  • Introduction

    • Introduction
      FREE
    • Prerequisites
      FREE
    • Sections and naming conventions
  • Download software, demos, and book

    • Software prerequisites
      FREE
    • Hardware prerequisites
      FREE
    • Download the demo files
    • Optimizing DAX book
  • Introducing optimization with examples

    • Introducing optimization with examples
      FREE
    • Introduction
      FREE
    • Optimizing DAX
      FREE
    • Optimizing the model
    • Conclusions
    • Links to external content
  • Introducing the Tabular query architecture

    • Introducing the Tabular query architecture
      FREE
    • Introduction
    • Introducing the formula engine
    • Introducing VertiPaq and DirectQuery architectures
    • Introducing the VertiPaq storage engine
    • Introducing the DirectQuery over SQL storage engine
    • Introducing DirectQuery over AS
    • Introducing data islands and cross-island query resolution
    • Different types of models
  • Using the Power BI Desktop performance analyzer

    • Using the Power BI Desktop performance analyzer
      FREE
    • Introduction
    • Running Performance Analyzer
    • Understanding the numbers reported by Performance Analyzer
    • Optimizing queries or measures?
    • What can be optimized
    • Saving performance data
    • Conclusions
    • Links to external content
  • Using DAX Studio

    • Using DAX Studio
      FREE
    • Introduction
    • Installing DAX Studio
    • Introducing the metrics of a database
    • Introducing All Queries
    • Capturing Excel queries (MDX)
    • Introducing Load Performance Data
    • Introducing Query Plan and Server Timings
    • Links to external content
  • Introducing query plans

    • Introducing query plans
      FREE
    • Introduction
    • Introducing the logical query plan
    • Introducing the physical query plan
      FREE
    • Introducing storage engine queries
    • Query plans in DirectQuery
    • Conclusions
  • Understanding the DAX Formula Engine

    • Understanding the DAX Formula Engine
      FREE
    • Introduction
    • Understanding datacaches
    • Understanding materialization
    • Understanding callbacks
      FREE
    • Formula engine with different storage engines
    • Understanding vertical fusion
    • Understanding horizontal fusion
    • Examples of formula engine calculations

      • Sales of best products
      • Top three colors
    • Measuring performance
    • Gathering important timings from the query plan
    • Analyzing query plans and timings
    • Conclusions
  • Understanding query plans

    • Understanding query plans
      FREE
    • Introduction
    • Query plan structure
    • Query plan operator types
    • Interactions between the formula engine and the storage engine
    • Common query plan operators
    • Examples of query plans

      • Comparing SUM versus SUMX
      • IF versus IF.EAGER
      • Filtering with DAX versus using relationships
      • Understanding SWITCH optimization
    • Conclusions
  • Optimizing the formula engine

    • Optimizing the formula engine
      FREE
    • Introduction
    • Optimizing datacache use
    • Sales of best products
    • Running total of sales and ABC analysis
    • Year-over-year customer growth as a percentage
    • Conclusions
  • Understanding the VertiPaq engine

    • Understanding the VertiPaq engine
      FREE
    • Introduction
    • Using VertiPaq Analyzer
    • Tabular data types
    • Introduction to the VertiPaq columnar database
    • Understanding VertiPaq compression
      FREE
    • Understanding segmentation and partitioning
    • Understanding the importance of sorting
    • Understanding VertiPaq relationships
    • Understanding attribute hierarchies
    • Optimizing VertiPaq model examples

      • Sales amount versus quantity and net price
      • Storing currency conversion data
      • Date time versus date and time
    • Conclusions
  • Understanding VertiPaq relationships

    • Understanding VertiPaq relationships
      FREE
    • Introduction
    • Regular, unidirectional one-to-many relationships
    • Regular, bidirectional one-to-many relationships
    • Regular, one-to-one relationships
    • Limited, many-to-many cardinality relationships
    • Conclusions
  • Analyzing VertiPaq storage engine queries

    • Analyzing VertiPaq storage engine queries
      FREE
    • Introduction
    • Analyzing simple xmSQL queries
    • Introducing basic VertiPaq functionalities
    • Introducing batches
    • Understanding internal and external SE queries
    • Understanding distinct count in xmSQL
    • Understanding VertiPaq joins and filters

      • Introducing VertiPaq joins
        FREE
      • Introducing bitmap indexes
      • Introducing reverse joins
    • Understanding VertiCalc and callbacks

      • Understanding VertiCalc and callbacks
      • Understanding CallbackDataID
      • Understanding EncodeCallback
      • Understanding LogAbsValueCallback
      • Understanding RoundValueCallback
        FREE
      • Understanding MinMaxColumnPositionCallback
      • Understanding Cond
    • Understanding the VertiPaq cache
    • Choosing the correct data type for VertiPaq calculations
    • Conclusions
  • Optimizing common DAX constructs

    • Optimizing common DAX constructs
      FREE
    • Introduction
    • Optimizing nested iterations
    • Understanding the effect of context transition
    • Different ways of performing a distinct count
    • Optimizing LASTDATE calculations
    • Avoid using SUMMARIZE and clustering
    • Optimizing division by checking for zeroes
    • Reducing the extent of the search by removing blanks
    • Optimizing time intelligence calculations
    • Distinct count over large cardinality columns
    • Conclusions
    • Links to external content
  • Moving and applying filters to tables

    • Moving and applying filters to tables
      FREE
    • Introduction
    • Different filters in CALCULATE

      • Different filters in CALCULATE
      • Analyzing single-column filters
      • Analyzing multiple-column filters
      • Analyzing filters over multiple tables
    • Understanding sparse or dense filters
    • Filter columns, not tables
    • Modeling many-to-many relationships

      • Modeling many-to-many relationships
      • Testing the bidirectional model
      • Testing the star model
      • Testing the snake model
      • Testing the advanced snake model
    • Conclusions
  • Optimization examples for VertiPaq

    • Optimization examples for VertiPaq
      FREE
    • Introduction
    • Reducing nested iterations
    • Optimizing complex filters in CALCULATE
    • Running faster than Fusion
    • Currency conversion
    • Optimizing cumulative totals
    • Average price variation of products over stores
    • Optimizing number of days with no sales
    • Computing open orders
    • Optimizing SWITCH and nested measures
    • Conclusions
  • Understanding security optimizations

    • Understanding security optimizations
      FREE
    • Introduction
    • Testing security conditions and their performance impact
    • Understanding when and where security is enforced
    • Understanding cached bitmap indexes and embedded filters
    • Optimizing dynamic security
    • Optimizing static security on the fact table
    • Optimizing dynamic security on the fact table
    • Conclusions
  • Conclusion

    • Conclusion
Student Rating
4.9
42 ratings
93%
2%
5%
0%
0%
3-star Reviews (2 of 27)
  • Marian Szetyinszki (Jun 28, 2022)

    it is fine, sometimes difficult to follow , some videos look outdated, so it would be wort adding annotation or comments on outdated parts below video with the latest info or link to articles with new content. Also it is now not really needed to comment /show what used to be before 2016 or even 2014 and how things were being solved in the past anymore... The Optimizing DAX Exercises.pdf is little bit confusing and difficult to follow in relation to what is shown in the Solution videos (mainly LAB 4 Solutions chapter) , looks like some solutions were not part of the video?

    • Thank you Marian for your valuable feedback. As a matter of fact Marco and Alberto are currently tackling exactly that, a new updated version of Optimizing DAX. Current students of Optimizing DAX at the time of that release will be upgraded to the new and improved version of the video course! Stay tuned, Claire
      Reply by Claire Costa (Jun 28, 2022)
  • Richard Lee (Jul 16, 2021)

    The course is useful, but it seems a bit out of date now and the presentation could be better. The free Power BI Tools course is excellent and seems more recent. I find the presentation difficult to watch. The English skills could be better for teaching a complex subject like this; it pushes unnecessary workload onto the listener trying to figure out what exactly they mean and this distracts from understanding the subject matter. The big screen is a big mistake - the presenter stands in front of the screen and blocks the view; the screen wastes valuable space. Presenters on edX, Coursera, and YouTube manage to avoid this mistake. The sound quality has an echo. They are also talking in very loud voices as though they have a large audience. In the Power BI Tools course, they present individually and the overall presentation is much better. More use of good diagrams would help to explain conceptual information -- they rely too much on words and bullet point PowerPoint slides.

Would you prefer a classroom course?

This video course is based on a classroom course we teach all around the world. If you prefer a classroom learning experience, take a look at the dates below for a list of our upcoming classroom courses!
Sorry, there are no classroom courses scheduled at this time.