top of page

Welcome
to NumpyNinja Blogs

NumpyNinja: Blogs. Demystifying Tech,

One Blog at a Time.
Millions of views. 

Understanding LOD in Tableau

Apr 29, 2025
4 min read

When you work with data in Tableau, you usually build charts and tables based on how you set your filters and dimensions. But sometimes, you need more control over how deep or how specific your calculations go. That's where LOD expressions come in! They give you that "superpower" to see the bigger picture or zoom in exactly where you need.



What is LOD?

LOD stands for Level of Detail. Think of it like asking Tableau:


“Hey, how closely should we look at this data?”


You can think of it like adjusting the zoom lens on a camera — zoom in for tiny details or zoom out for the big picture.


It simply means:

How detailed do you want Tableau to look when doing a calculation?


Let's break this down step-by-step.


Why Do We Need LOD?

Normally, Tableau summarizes data based on what you show on your screen.


But what if you want to calculate something differently?


Example:- You are showing Sales by Product.-

But you want to calculate the average sales across all products, even if only a few products are showing.


LOD expressions give you the freedom to control calculations, no matter what’s

visible in your dashboard.


They help you stay consistent, accurate, and flexible — even when your viewers

slice and dice the data in ways you didn’t expect.


✨ Common Use Cases for LOD Expressions

·        Finding customer lifetime value

·        Showing sales targets vs actuals at different levels

·        Ranking customers within a segment

·        Creating cohort analysis


 Tracking how individual products perform compared to the entire catalog.


In short: whenever you need better control over what your data is doing behind the scenes, LOD expressions come to the rescue.


Types of LOD Expressions

🛠️ Syntax Tip:

All LOD expressions are wrapped inside curly braces {}.


Example: { FIXED [Field] : AGG([Measure]) }


There are three types of LOD expressions


 





1. FIXED 🔵


FIXED tells Tableau: "No matter what, always group by this." It ignores the filters you apply

unless you force it to react


Example:{ FIXED [Customer ID] : SUM([Sales]) }


Even if your dashboard changes, the customer sales calculation stays steady like a rock.


This is great when you want to create benchmarks, goals, or totals that need to stay consistent.


2. INCLUDE 🟢

INCLUDE tells Tableau: "Add more detail to what you are already showing.

"It uses the dimensions in the view and adds extra fields to the calculation.


Example:{ INCLUDE [Product Name] : SUM([Sales]) }


You might be viewing sales by Category, but now you sneak a peek into individual Products too!


Perfect when you want both a summary and a way to explore deeper insights within it.


3. EXCLUDE 🟠

EXCLUDE tells Tableau: "Ignore some details." It removes fields from the calculation that

are otherwise in your view.


Example:{ EXCLUDE [Product Name] : SUM([Sales]) }


This helps you summarize by removing unnecessary fine details.



🧮 Real-Life Simple Example

Imagine a class of students and their scores.

Student

Class

Score

John

A

90

Alice

A

95

Bob

B

88

- If you want total score by Class → Use FIXED [Class].

- If you want average score per Student inside a Class view → Use INCLUDE [Student]. - If you want total score ignoring Student names → Use EXCLUDE [Student].


It's really about deciding: "Do I care about the whole class, the individuals, or just a big summary?"

This simple idea translates beautifully into real Tableau projects.


🧠 When to Use Which?

 

Type

When to Use It

FIXED

When your calculation must stay constant no matter the view

INCLUDE

When you want to add extra granularity to your current view

EXCLUDE

When you want to summarize by ignoring certain dimensions


You can think of these as setting rules for how Tableau "thinks" — it's like setting ground rules for a team project.


🧩 A Few More Pro Tips!

  • Always double-check how filters are affecting your LOD expressions. Sometimes you need a Context Filter to keep things in the right order.

  • LODs happen before table calculations, so you can stack them creatively to build complex dashboards easily.

  • Start simple. Build small examples first. It’s easier to spot mistakes when things are bite-sized.

  • Sketch out your logic first! Sometimes a quick diagram on paper can make your LOD ideas crystal clear before you touch Tableau.

  • Practice with real examples like sales by region, customer orders, or product categories to master it naturally.


 

🎯 Quick Tips to Remember

  • 🔵 FIXED = Always group by these fields, steady and reliable.

  • 🟢 INCLUDE = Add more detail to what you’re already looking at.

  • 🟠 EXCLUDE = Hide some detail for a cleaner summary.


Think of FIXED, INCLUDE, and EXCLUDE like choosing different tools from your toolbox — each has the perfect moment to shine!


Another way to remember:

  • FIXED is like cement — solid and immovable.

  • INCLUDE is like a magnifying glass — zooming in when you want.

  • EXCLUDE is like decluttering your closet — only keeping what you need.



🌟 Final Thoughts

LOD expressions are like your secret recipe for building smarter dashboards in Tableau.

They help you think clearly, organize your data better, and communicate your insights powerfully.

Once you get the hang of it, you’ll wonder how you ever lived without them.

If you want more cont****rol, accuracy, and flexibility, LOD is your best friend!

Keep practicing with small examples, trust yourself, and soon you’ll be creating dashboards that really wow your audience!


 
 

+1 (302) 200-8320

NumPy_Ninja_Logo (1).png

Numpy Ninja Inc. 8 The Grn Ste A Dover, DE 19901

© Copyright 2025 by Numpy Ninja Inc.

  • Twitter
  • LinkedIn
bottom of page