Skip to main content
Albero Academy

LOD Expressions

Compute at a different level of detail than the view.

Calculations10 min

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

LOD syntax
{ 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

  1. 01LOD expressions compute at a different granularity than the view.
  2. 02FIXED computes at the specified dimensions, ignoring the view.
  3. 03INCLUDE/EXCLUDE add or remove dimensions relative to the view.
  4. 04They power customer-level totals, % of fixed totals and cohort analysis.

Finished this chapter?

Mark it complete to track your progress through Tableau.