01 / 20

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.

Tableau

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.

Independent
Not affected by viz-level dimensions: the result stays the same no matter what you drag onto Rows/Columns.
Per-Entity
Perfect for per-customer, per-order, or per-store calculations that you then aggregate up in the view.
Filter-Aware
FIXED calcs are evaluated before dimension filters, so context filters or data source filters are needed to restrict them.

Aggregation Without vs With FIXED

Viz-Level (Region) Region SUM(Sales) East $150K West $200K South $90K Aggregated at Region level (can't see per-customer) FIXED [Customer] Customer Total Sales Alice $12K Bob $8K Carol $22K Dave $5K One row per customer, independent of viz dimensions

The FIXED Syntax

{ FIXED [Dimension1], [Dimension2], ... : AGG([Measure]) }
{ } Braces
The curly braces tell Tableau this is an LOD expression.
FIXED Keyword
Declares the exact dimensions to group by.
[Dim] Dimensions
One or more fields that define the granularity.
AGG() Aggregate
SUM, AVG, MIN, MAX, COUNTD, etc.

The Core Rule

// Total sales per customer, regardless of viz layout { FIXED [Customer Name] : SUM([Sales]) }

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

1. Extract / Data Source Filters 2. Context Filters 3. FIXED LOD Expressions ★ 4. Dimension Filters 5. Measure Filters / Table Calcs

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

1
Identify the entity. What is the "per" in your question? Per customer? Per order? Per product?
2
Choose the aggregate. What do you want to compute for each entity? SUM, AVG, MIN, MAX, COUNTD?
3
Write the expression. Open the calculated field editor and type: { FIXED [Entity] : AGG([Measure]) }
4
Drag to the view. Tableau treats FIXED results as disaggregated values. You may need to wrap them in another AGG (e.g., AVG) at the viz level.
5
Check filter behavior. If a dimension filter should affect your FIXED calc, promote it to a context filter.

Example 1: Per-Customer Total Sales

Goal: Find the total sales for each customer, then show the average across all customers per region.

// Step 1: Create calculated field "Customer Total" { FIXED [Customer Name] : SUM([Sales]) } // Step 2: Drag to Rows, use AVG aggregation // Rows: [Region] // Columns: AVG([Customer Total])

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).

// Calculated field: "First Purchase" { FIXED [Customer Name] : MIN([Order Date]) } // Usage: MONTH([First Purchase]) on Columns // COUNTD([Customer Name]) on Rows

Example 3: Multi-Dimension FIXED

Goal: Find total sales per customer per category, then compare each transaction to that customer-category total.

// Calculated field: "Customer-Category Total" { FIXED [Customer Name], [Category] : SUM([Sales]) } // Calculated field: "% of Customer-Category Total" SUM([Sales]) / SUM([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.

// Grand total: no dimension listed { FIXED : SUM([Sales]) } // Percent of total SUM([Sales]) / SUM([Grand Total])

FIXED and Context Filters

Without Context Filter Dim Filter: Region = "East" FIXED ignores this filter Result: ALL customers' totals vs With Context Filter Context Filter: Region = "East" FIXED respects this filter Result: Only East customers How to promote a filter: Right-click the filter pill → "Add to Context"

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

✕ Forgetting Filter Order
Expecting a dimension filter to restrict your FIXED calc. FIXED runs before dimension filters: use a context filter instead.
✕ Wrong Aggregation Wrapper
Dragging a FIXED field onto the view without specifying an outer aggregation. Tableau defaults to SUM, but you often need AVG or MIN.
✕ Mixing Up LOD Types
Using INCLUDE when you need FIXED. INCLUDE adds to the viz-level, so it changes when you rearrange dimensions. FIXED stays constant.

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?