Tableau LOD expressions: choose FIXED, INCLUDE, or EXCLUDE and verify filters
Tableau level of detail (LOD) expressions specify the dimension grain at which an aggregation is calculated, which can differ from the marks in a view. Use FIXED for a calculation based only on named dimensions, INCLUDE to add detail beyond the view and then reaggregate, and EXCLUDE to omit a view dimension from a calculation. Before using an LOD, define the intended unit of analysis and when filters should affect it.
Tableau level of detail (LOD) expressions specify the dimension grain at which an aggregation is calculated, which can differ from the marks in a view. Use FIXED for a calculation based only on named dimensions, INCLUDE to add detail beyond the view and then reaggregate, and EXCLUDE to omit a view dimension from a calculation. Before using an LOD, define the intended unit of analysis and when filters should affect it.
This guide reflects Tableau Desktop, Cloud, Server, and Web Authoring Help read on November 19, 2026. Behavior may vary with product version or connection, so validate in the workbook you deploy. Numerical examples are explanatory, not product tests or business data.
View grain and LOD
The view’s level of detail is the unit represented by its marks, determined by dimensions in the view. A view with Region and State has marks at the region/state combination. Yet a question may need regional sales alongside state bars, or average sales per customer within each region.
An LOD explicitly declares the dimensions for an aggregation. General form: { FIXED | INCLUDE | EXCLUDE dimension declaration : aggregate expression }. The expression inside the braces must be an aggregate such as SUM, AVG, or MIN. Tableau Help says ATTR and table calculations are not supported in that aggregate expression. Declare one or more dimensions, separated by commas. Create a field via Analysis > Create Calculated Field.
Choose a keyword
| Question | Keyword | Calculation grain | Effect of changing view dimensions |
|---|---|---|---|
| Calculate using named dimensions regardless of the view? | FIXED | Only declared dimensions | The calculation grain remains defined by the declaration |
| Calculate at a finer grain, then average or sum in a coarser view? | INCLUDE | View dimensions plus declared dimensions | Adding or removing view dimensions may change the result |
| Need a comparison value with a current view dimension omitted? | EXCLUDE | View grain minus declared dimension | The dimension must be present in the view to omit it |
These keywords have different meanings. FIXED defines a grain independent of the view. INCLUDE is useful when calculating more finely and summarizing again. EXCLUDE creates a reference with one view axis removed. INCLUDE and EXCLUDE can change in a different view because the view structure participates in their grain.
Read the expressions
FIXED: repeat regional sales in a state-level view
{ FIXED [Region] : SUM([Sales]) }
This sums sales by region. If the view displays Region and State, the region total may appear on each state mark in that region. The repeated value represents the coarser regional grain; it is not a separate state total. Summing those repeated values again can double-count the regional amount.
INCLUDE: average customer sales per region
{ INCLUDE [Customer Name] : SUM([Sales]) }
With Region in the view and the LOD measure aggregated as AVG, the calculation first obtains each customer’s sales total and then averages those totals within each region. This is different from regional total sales. Check that customer identifiers are meaningful and sufficiently unique for the connected data.
EXCLUDE: a comparison with a view dimension removed
If a view displays sales by month, excluding the month dimension can create a broader reference for comparison with each monthly mark. State whether you want average monthly sales or deviation from a period-wide reference. The dimension declaration should match how the date field is represented in the view; a similarly named but different calculation may not match it.
Filter order matters
FIXED is evaluated after context, data-source, and extract filters, but before ordinary dimension filters. A dimension filter may therefore hide regions from the view while the FIXED denominator still includes them. For example, the numerator could be filtered regional sales while the denominator is a FIXED total across all regions. That is appropriate for share of all regions, but not for share of only selected regions.
If a filter should affect FIXED, consider promoting it to a context filter. If the question permits, you may instead express the calculation with INCLUDE or EXCLUDE, but changing the keyword also changes the calculation grain, so do not substitute mechanically. INCLUDE and EXCLUDE are evaluated after dimension filters. Table-calculation filters hide marks after the calculation and may not remove the underlying data used in it.
Procedure and validation
State the unit in the question: for example, “average customer sales total within each region” or “each state’s sales compared with total regional sales.”
List the dimensions in the view and those required for the calculation.
Create a calculated field and select the matching keyword. When possible, drag dimensions from the Data pane into the editor so the declaration matches the field representation used in the view.
Build a small crosstab with view dimensions, source measures, and the LOD result. Hand-check one or two groups.
Add or remove view dimensions and compare the changed result with your expectation. Inspect repeated FIXED values and the aggregation Tableau assigns to finer-grain results.
Test ordinary dimension and context filters separately. Check what is included in the numerator and denominator, plus dates, nulls, duplicate keys, zero denominators, and data-source filters.
Confirm aggregation and units on each affected sheet, including other sheets where the field is reused.
Troubleshooting
**FIXED denominator does not change with a filter:** the dimension filter may run after FIXED. Test it as a context filter or revisit the intended denominator.
**An LOD value repeats on marks:** the expression may be coarser than the view. Confirm the repeated value’s grain before summing it.
**A value changes in another view:** INCLUDE and EXCLUDE can depend on view dimensions. Recheck the dimension set and intended grain on that sheet.
**EXCLUDE does not remove a dimension:** confirm that the declaration matches the field expression on the shelf; names alone do not guarantee Tableau treats two expressions as identical.
**The calculation is slow or errors at the source:** simplify the expression and dimensions, isolate the smallest failing view, and check source-specific support. Tableau notes that complex queries can hit limits in some data sources.
Use FIXED for a named, view-independent grain; INCLUDE to calculate at added detail and summarize; EXCLUDE to remove a view dimension for comparison. A small crosstab and explicit filter tests reveal whether the result answers the intended question.
Sources
[Create LOD Expressions](https://help.tableau.com/current/pro/desktop/en-us/calculations_calculatedfields_lod.htm)
[Filters and LOD Expressions](https://help.tableau.com/current/pro/desktop/en-us/calculations_calculatedfields_lod_filters.htm)
[LOD Aggregation and View Grain](https://help.tableau.com/current/pro/desktop/en-us/calculations_calculatedfields_lod_replication.htm)
[INCLUDE LOD](https://help.tableau.com/current/pro/desktop/en-us/calculations_calculatedfields_lod_include.htm)
[FIXED LOD](https://help.tableau.com/current/pro/desktop/en-us/calculations_calculatedfields_lod_fixed.htm)
[EXCLUDE LOD](https://help.tableau.com/current/pro/desktop/en-us/calculations_calculatedfields_lod_exclude.htm)