Tableau’s Level of Detail (LOD) functions are powerful tools that enable users to perform complex calculations based on varying levels of detail in their data. LOD functions allow users to generate computations without being limited by the level of aggregation in their view. This flexibility makes it easier to conduct calculations that may otherwise be challenging or impossible. By defining the scope of analysis, users can gain deeper insights into their data and address intricate questions that go beyond simple aggregations.
Types of LOD Functions
To effectively use Level of Detail (LOD) functions in Tableau, it’s important to first understand the different types of functions available. Tableau categorizes LOD functions into three types: FIXED, INCLUDE, and EXCLUDE. Each type of LOD function defines a unique level of detail for a specific calculation.
FIXED LOD
Allows users to define a fixed level of detail for a particular calculation, regardless of the level of detail in their view. FIXED LOD functions are useful when users need to perform calculations at a specific level of detail.
For Example:
Calculate the average sales per customer, regardless of the level of detail in the view:
{FIXED [Customer ID]: AVG([Sales])}
INCLUDE LOD
This function allows to inclusion additional fields in the calculation while still preserving the level of detail of the view. INCLUDE LOD functions are useful when users need to perform calculations that include additional fields but still need to preserve the level of detail in their view.
For example:
Calculate the maximum sales for each product category while still preserving the level of detail of the view:
{INCLUDE [Category]: MAX([Sales])}
EXCLUDE LOD
This enables users to exclude specific fields from the calculation while still preserving the level of detail of the view. EXCLUDE LOD functions are useful when users need to perform calculations that exclude specific fields but still need to preserve the level of detail in their view.
For example:
Calculate the total sales, excluding the state field, while still preserving the level of detail of the view:
{EXCLUDE [State]: SUM([Sales])}
Order of Operations
It is important to remember the order of operations when using LOD, particularly which calculations and filters are executed first.

It’s important to note that Fixed LOD expressions are the only type of LOD expressions that are evaluated before dimension filters. Therefore, if you want your dimension filters to work in conjunction with fixed LOD expressions, you need to convert your dimension filters to context filters.
Conclusion
By utilizing the power of Level of Detail (LOD) functions, data analysts and business professionals can make more informed data-driven decisions. Whether navigating complex data relationships or tackling intricate analytical challenges, LOD functions offer the clarity and precision needed to understand the data effectively.