0
0
Tableaubi_tool~20 mins

Common LOD use cases (customer first purchase, cohorts) in Tableau - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
LOD Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
dax_lod_result
intermediate
2:00remaining
Calculate Customer First Purchase Date Using LOD Expression
You have a sales dataset with fields: CustomerID, OrderDate, and SalesAmount. Which Tableau LOD expression correctly calculates the first purchase date for each customer?
A{ INCLUDE [CustomerID] : MAX([OrderDate]) }
B{ FIXED [CustomerID] : MIN([OrderDate]) }
C{ EXCLUDE [CustomerID] : MIN([OrderDate]) }
DMIN([OrderDate])
Attempts:
2 left
💡 Hint
Think about fixing the calculation at the customer level to get their earliest order date.
visualization
intermediate
2:00remaining
Best Visualization for Customer Cohort Analysis
You want to visualize customer retention by cohorts based on their first purchase month. Which visualization type is best suited for this purpose?
APie chart showing total sales by product category
BBar chart showing total sales per region
CLine chart showing number of customers retained over months by cohort
DScatter plot of sales amount vs. order count
Attempts:
2 left
💡 Hint
Cohort analysis tracks groups over time, so a time series visualization is best.
data_modeling
advanced
2:30remaining
Designing Data Model for Cohort Analysis
You want to perform cohort analysis by customer first purchase month and track their monthly retention. Which data model design is best to support this in Tableau?
AA star schema with a customer dimension table and a fact sales table including OrderDate
BSeparate tables for customers and orders without relationships
CA single fact table with CustomerID, OrderDate, and a calculated FirstPurchaseDate field
DOnly an aggregated table with monthly sales totals
Attempts:
2 left
💡 Hint
Think about how to relate customer info with their orders efficiently.
🎯 Scenario
advanced
3:00remaining
Using LOD to Calculate Cohort Retention Rate
You have a dataset with CustomerID, OrderDate, and SalesAmount. You want to calculate the retention rate for each monthly cohort (based on first purchase month) for subsequent months. Which approach using Tableau LOD expressions is correct?
AUse a simple SUM aggregation of sales amount by month
BUse INCLUDE LOD to calculate average sales per month without cohort grouping
CUse EXCLUDE LOD to remove customer dimension and sum sales by month
DUse FIXED LOD to get each customer's first purchase month, then count customers with orders in each month divided by cohort size
Attempts:
2 left
💡 Hint
Retention requires knowing the cohort and tracking customers over time.
🔧 Formula Fix
expert
2:00remaining
Identify the Error in This LOD Expression for First Purchase Date
You wrote this Tableau LOD expression to get the first purchase date per customer: { FIXED [CustomerID] : MIN(OrderDate) }. However, Tableau returns an error. What is the cause?
Tableau
{ FIXED [CustomerID] : MIN(OrderDate) }
AOrderDate is missing brackets and should be [OrderDate]
BFIXED LOD cannot use MIN aggregation
CCustomerID should be aggregated inside the expression
DThe expression must use INCLUDE instead of FIXED
Attempts:
2 left
💡 Hint
Check the syntax for field references in Tableau LOD expressions.