Jump into concepts and practice - no test required
or
Recommended
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
Recall & Review
beginner
What does LOD stand for in Tableau?
LOD stands for Level of Detail. It lets you control the granularity of your calculations independently from the view.
Click to reveal answer
beginner
How can you find a customer's first purchase date using LOD expressions?
Use a FIXED LOD expression like { FIXED [Customer ID] : MIN([Order Date]) } to get the earliest purchase date per customer.
Click to reveal answer
beginner
What is a cohort in business intelligence?
A cohort is a group of customers who share a common characteristic, often grouped by their first purchase date or signup period.
Click to reveal answer
intermediate
Why use FIXED LOD expressions for cohort analysis?
FIXED LOD expressions let you calculate metrics like first purchase date per customer regardless of the current view filters or dimensions.
Click to reveal answer
intermediate
Give an example of a cohort calculation using LOD in Tableau.
You can create a cohort by fixing the first purchase month: { FIXED [Customer ID] : DATETRUNC('month', MIN([Order Date])) } to group customers by their first purchase month.
Click to reveal answer
What does the FIXED keyword do in a Tableau LOD expression?
AFilters data before aggregation
BChanges the data source connection
CAggregates data only for visible marks
DCalculates the value at a specified dimension level regardless of the view
✗ Incorrect
FIXED calculates the expression at the specified dimension level, ignoring the view's dimensions.
Which LOD expression finds the first purchase date per customer?
A{ INCLUDE [Customer ID] : MIN([Order Date]) }
B{ FIXED [Customer ID] : MIN([Order Date]) }
C{ FIXED [Customer ID] : MAX([Order Date]) }
D{ EXCLUDE [Customer ID] : MIN([Order Date]) }
✗ Incorrect
MIN([Order Date]) fixed by Customer ID returns the earliest purchase date per customer.
What is a cohort analysis typically used for?
AGrouping customers by their first purchase or signup date
BCalculating total sales per product
CFiltering out inactive customers
DChanging data source connections
✗ Incorrect
Cohort analysis groups customers by shared characteristics like first purchase date to analyze behavior over time.
Which LOD type ignores the view filters except context filters?
AFIXED
BEXCLUDE
CINCLUDE
DFILTER
✗ Incorrect
FIXED LOD expressions ignore dimension filters in the view except context filters.
How can you group customers by their first purchase month in Tableau?
AUse DATETRUNC('month', [Order Date]) directly
BUse { INCLUDE [Customer ID] : MAX([Order Date]) }
3. Given the LOD expression { FIXED [Customer ID] : MIN([Purchase Date]) }, what will be the result if a customer has purchases on 2023-01-10, 2023-02-15, and 2023-03-20?
medium
A. NULL
B. 2023-03-20
C. 2023-02-15
D. 2023-01-10
Solution
Step 1: Understand MIN aggregation in LOD
MIN([Purchase Date]) returns the earliest date for the fixed customer.
Step 2: Identify earliest purchase date
Among 2023-01-10, 2023-02-15, 2023-03-20, the earliest is 2023-01-10.
Final Answer:
2023-01-10 -> Option D
Quick Check:
MIN date per customer = earliest purchase [OK]
Hint: MIN returns earliest date in Fixed LOD [OK]
Common Mistakes:
Choosing MAX instead of MIN
Confusing date formats
Assuming NULL if multiple purchases
4. You wrote this LOD expression to find first purchase date: { FIXED [Customer ID] : MIN([Purchase Date]) }. But the result shows the same date for all customers. What is the most likely error?
medium
A. You forgot to include [Customer ID] in the view or filter context
B. You used MAX instead of MIN
C. You wrote INCLUDE instead of FIXED
D. You used SUM instead of MIN
Solution
Step 1: Check LOD expression correctness
The expression syntax is correct for Fixed LOD with MIN.
Step 2: Understand why all customers show same date
If [Customer ID] is not in the view or filter, Tableau aggregates all customers together, showing one date.
Final Answer:
You forgot to include [Customer ID] in the view or filter context -> Option A
Quick Check:
Missing dimension in view causes same value for all [OK]
Hint: Always include LOD dimension in view to see distinct results [OK]
Common Mistakes:
Changing aggregation instead of checking view
Confusing FIXED with INCLUDE
Ignoring filter context effects
5. You want to create customer cohorts by their first purchase month using LOD expressions. Which approach correctly assigns each customer to their cohort month?
hard
A. { EXCLUDE [Customer ID] : COUNT([Customer ID]) }
B. { INCLUDE [Customer ID] : MAX([Purchase Date]) }
C. { FIXED [Customer ID] : DATETRUNC('month', MIN([Purchase Date])) }
D. { FIXED [Purchase Date] : MIN([Customer ID]) }
Solution
Step 1: Identify cohort definition
Cohorts group customers by their first purchase month, so we need first purchase date truncated to month.
Step 2: Use Fixed LOD to get first purchase month per customer
Fixed LOD with MIN([Purchase Date]) finds first purchase date; DATETRUNC('month', ...) converts it to month start.