FIXED LOD
Expressions in Tableau
Master per-entity metrics using FIXED Level of Detail expressions: compute values at any granularity regardless of your viz filters.
What is Level of Detail?
In Tableau, every view has a level of detail determined by the dimensions on your Rows, Columns, and other shelves. When you drag "Region" and "Category" onto a view, Tableau aggregates measures at the Region + Category level.
But what if you need a calculation at a different granularity: per customer, per order, or across the entire dataset? That is exactly what LOD expressions solve.
Why FIXED is Special
The FIXED keyword computes an aggregate at exactly the dimensions you declare, ignoring what is in your viz. This makes it the most powerful and commonly used LOD type.
Aggregation Without vs With FIXED
The FIXED Syntax
The Core Rule
If your view shows Region on Rows and Category on Columns, the value from this FIXED calc is still one number per customer. Tableau then aggregates that number (e.g., AVG) at the viz level.
Tableau's Order of Operations
FIXED vs INCLUDE vs EXCLUDE
| FIXED | INCLUDE | EXCLUDE | |
|---|---|---|---|
| Granularity | Exactly the dims you list | Viz-level + dims you add | Viz-level - dims you remove |
| Respects viz dims? | No | Yes | Yes |
| Filter behavior | Before dim filters | After dim filters | After dim filters |
| Use case | Per-entity totals | Finer detail calcs | Remove a dimension's effect |
How to Build a FIXED Calc
Example 1: Per-Customer Total Sales
Goal: Find the total sales for each customer, then show the average across all customers per region.
Example 2: First Purchase Date
Goal: Find each customer's first purchase date, then count how many customers had their first purchase each month (cohort analysis).
Example 3: Multi-Dimension FIXED
Goal: Find total sales per customer per category, then compare each transaction to that customer-category total.
Special Case: Zero-Dimension FIXED
Goal: Compute a grand total across the entire dataset to use as a denominator for percent-of-total calculations.
FIXED and Context Filters
If you need a FIXED calc to respect a dimension filter, right-click the filter pill and select "Add to Context". Context filters run before FIXED in the pipeline.
Common Mistakes
FIXED LOD Cheat Sheet
| Pattern | Syntax | Use Case |
|---|---|---|
| Per-entity total | { FIXED [Cust] : SUM([Sales]) } | Customer lifetime value |
| First/last event | { FIXED [Cust] : MIN([Date]) } | Cohort analysis |
| Distinct count per entity | { FIXED [Cust] : COUNTD([Product]) } | Product diversity |
| Grand total | { FIXED : SUM([Sales]) } | Percent of total |
| Multi-dim entity | { FIXED [Cust],[Cat] : SUM([Sales]) } | Cross-dimensional ratios |
Question 1 of 5
Which LOD expression type computes an aggregate at exactly the dimensions you specify, ignoring the viz-level dimensions?
Question 2 of 5
You create { FIXED [Customer Name] : SUM([Sales]) } and drag it onto a view that shows Region on Rows. What does Tableau compute?
Question 3 of 5
In Tableau's order of operations, FIXED LOD expressions are evaluated:
Question 4 of 5
What does the expression { FIXED : SUM([Sales]) } (with no dimensions) return?
Question 5 of 5
You have a dimension filter on Category = "Technology" and a FIXED calc { FIXED [Customer] : SUM([Sales]) }. The FIXED calc includes sales from all categories. How do you fix this?