Level of Detail Practice
FIXED, INCLUDE and EXCLUDE drills.
Which LOD ignores the dimensions in the view entirely?
- INCLUDE
- FIXED
- EXCLUDE
- All of them
Answer: FIXED — FIXED uses only the dimensions you name.
Which LOD uses the view dimensions plus the ones you name?
- FIXED
- INCLUDE
- EXCLUDE
- None
Answer: INCLUDE — INCLUDE adds to the view level, letting you compute finer then re-aggregate.
You need a total that stays constant while the view breaks down by Region. Use:
- {FIXED [Region] : SUM([Sales])}
- {EXCLUDE [Region] : SUM([Sales])}
- {INCLUDE [Region] : SUM([Sales])}
- SUM([Sales])
Answer: {EXCLUDE [Region] : SUM([Sales])} — EXCLUDE removes Region from the computation, holding the value at the higher level.
{FIXED : SUM([Sales])} with no dimensions returns:
- Null
- A grand total across the filtered data
- Sales per row
- An error
Answer: A grand total across the filtered data — With no dimensions it computes a single total over the whole (filtered) data set.
An LOD expression is written with:
- Square brackets
- Curly braces
- Parentheses
- Angle brackets
Answer: Curly braces — The syntax is {FIXED [Dim] : AGG([Measure])}.
Average customer spend per region is best written as:
- AVG([Sales])
- AVG({INCLUDE [Customer ID] : SUM([Sales])})
- {FIXED [Region] : AVG([Sales])}
- SUM([Sales])/COUNTD([Customer ID])
Answer: AVG({INCLUDE [Customer ID] : SUM([Sales])}) — Compute per customer with INCLUDE, then average those results at the view level.
A FIXED expression ignores your quick filter. The fix is to:
- Change to INCLUDE
- Add the filter to Context
- Use an extract
- Sort the view
Answer: Add the filter to Context — Context filters run before FIXED in the order of operations.
In the order of operations, FIXED is evaluated:
- Before all filters
- After dimension filters but before measure filters
- After table calculations
- Last
Answer: After dimension filters but before measure filters — That position is exactly why FIXED appears to ignore view-level dimension filters.
To label each customer by the year of their first purchase:
- YEAR(MIN([Order Date]))
- YEAR({FIXED [Customer ID] : MIN([Order Date])})
- {EXCLUDE [Customer ID] : MIN([Order Date])}
- MIN(YEAR([Order Date]))
Answer: YEAR({FIXED [Customer ID] : MIN([Order Date])}) — The FIXED gives each customer their own first date; wrapping in YEAR makes the cohort.
Which LOD types respond to what is on the shelves?
- FIXED only
- INCLUDE and EXCLUDE
- All three equally
- None
Answer: INCLUDE and EXCLUDE — INCLUDE and EXCLUDE are relative to the view; FIXED is not.