From the course: Tableau: Mastering Calculations
Unlock the full course today
Join today to access over 24,200 courses taught by industry experts.
LOD calculations in the Tableau Order of Operations - Tableau Tutorial
From the course: Tableau: Mastering Calculations
LOD calculations in the Tableau Order of Operations
We just calculated the cohorts by year of purchase date. What happens if we filter the normal date of purchase? To no longer include the year 2020, then all orders from 2020 will be excluded so that the oldest order from all customers should only come from 2021 at the earliest, right? Let's try this out. Let's exclude 2020. Hmm. We can see even though there is no longer a bar for 2020, the remaining years still show which existing customers ordered from us for the first time in 2020. How can that be? Let's refer to Tableau's order of operations again. We first encountered this in the previous chapter when we talked about how to filter table calculations properly. Now our date filter is a dimension filter. We can see that INCLUDE and EXCLUDE LODs are calculated after the dimension filter. So for these two level of detail expressions, the filter is applied as expected and you don't need to worry about them. FIXED is a special case however. FIXED expressions are calculated before…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
When do I need LOD calculations?1m 23s
-
(Locked)
Syntax of LOD calculations2m 16s
-
(Locked)
EXCLUDE LOD calculations3m 23s
-
(Locked)
INCLUDE LOD calculations3m 48s
-
(Locked)
FIXED LOD calculations2m 37s
-
(Locked)
LOD calculations in the Tableau Order of Operations2m 20s
-
(Locked)
Challenge: LOD46s
-
(Locked)
Solution: LOD4m 30s
-
-