Level of Detail (LOD) expressions are one of Tableau's most powerful features. They let a calculation run at a different granularity than the view — computing a per-customer total even in a view broken down by order, for example.
FIXED, INCLUDE, EXCLUDE
{ FIXED [Customer] : SUM([Sales]) }// total sales per customer, regardless of the view's dimensions{ INCLUDE [Product] : SUM([Sales]) }// aggregate at the view's level PLUS Product{ EXCLUDE [Region] : SUM([Sales]) }// aggregate at the view's level BUT ignore Region
Key takeaways
- 01LOD expressions compute at a different granularity than the view.
- 02FIXED computes at the specified dimensions, ignoring the view.
- 03INCLUDE/EXCLUDE add or remove dimensions relative to the view.
- 04They power customer-level totals, % of fixed totals and cohort analysis.
