
An introduction to this course
In this lecture we discuss the main data model used for this course
Some additional data models used in this course
We start a deep dive into what an evaluation context is and then move into the filter context.
We continue our deep dive into the filter context.
In this lecture we discuss the other half of the evaluation context, the row context
This lecture begins an in-depth discussion of context transitioning that occurs when CALCULATE is used inside a row context and one particular problem it can cause
We continue our in-depth discussion of context transitioning that occurs when CALCULATE is used inside a row context and one particular problem it can cause
We demonstrate a way for identifying duplicate rows in your tables using Power Query
This is a brief introduction to the CALCULATE function
This lecture talks about the role the FILTER statement plays in the CALCULATE statement
Here we present a brief summary of how filters work in a CALCULATE statement
It's important to understand the order of execution of the parameters contained in a CALCULATE, and how nested CALCULATE statements might impact that. We also show how to mimic a filter context set in Power BI.
We discuss what a CALCULATE modifier is using the ALL and VALUES function
We continue our discussion on what a CALCULATE modifier is using the ALL and VALUES function and some practice exercises
We discuss the KEEPFILTERS modifier in this lecture
We continue our discussion on CALCULATE modifiers by discussing the USERELATIONSHIP function
We continue our discussion on CALCULATE modifiers by discussing the CROSSFILTER function; a sometimes great alternative to bi-directional filters in your model
In this lecture we discuss the fascinating, powerful and dangerous ALLSELECTED modifier function
Here we review a summary of how CALCULATE evaluates an expression
Expanded tables are a core concept in DAX and we discuss the impact it could have when filtering in a CALCULATE statement
CALCULATETABLE is sort of a mystery function that isn't widely known or used. But, in some scenarios, it can be much more efficient than using FILTER.
Test your knowledge with 20 questions
This exercise and exercise 2 both use the Contoso database that can be downloaded as a resource. The Contoso - Solution database contains the solution to the two exercises.
This exercise builds on exercise #1. The database used for this exercise is the same for exercise #1 and can be downloaded as a resource in exercise #1.
Exercise 3. The database used can be downloaded as a resource.
Exercise 4. The database used can be downloaded as a resource.
Exercise 5. The database for this exercise can be downloaded as a resource.
A tricky exercise where one query using FILTER does not return the same number of rows as the same query using CALCULATETABLE
The DAX CALCULATE function is THE core DAX function that every DAX developer uses but probably has little understanding of what's going on 'under the hood' and the kinds of problems he/she can run into.
It's very simple in its concept, extremely powerful but full of subtleties to be aware of to get the most benefit from it and to stay out of trouble.
This 3.5 hour Udemy course on the CALCULATE function starts with a deep dive into the evaluation context, which must be thoroughly understood when working with CALCULATE. We then explore filtering, context modifiers and order of execution. We then spend a fair amount of time discussing the mystery function that is CALCULATETABLE and when to use it. The course is wrapped up with 20 questions to test your knowledge.
When you complete this course you will have a solid grasp on how to use this amazingly simple, in appearance, yet exceedingly powerful, DAX function.