Prev Next

BigData / Tableau Interview Questions

What is a Level of Detail (LOD) expression?

An LOD expression lets you compute an aggregation at a level of detail that's different from the granularity of the view itself — something neither a normal calculated field nor a table calculation can do on their own.

{ FIXED [Customer ID] : SUM([Sales]) }
{ INCLUDE [Order ID] : SUM([Profit]) }
{ EXCLUDE [Sub-Category] : AVG([Discount]) }

  • FIXED: computes the aggregation at exactly the dimensions listed, ignoring whatever's in the view.
  • INCLUDE: computes at a finer level than the view by adding extra dimensions, useful inside calculations that need row-level detail temporarily.
  • EXCLUDE: computes at a coarser level than the view by removing dimensions the view would otherwise use.

A classic example is "total sales per customer, shown alongside order-level rows" — a normal SUM([Sales]) would just repeat the order's own value, but { FIXED [Customer ID] : SUM([Sales]) } computes the true customer-level total and repeats that same total across every one of that customer's orders, regardless of how granular the view is.

What problem do LOD expressions solve that regular calculated fields cannot?
Which LOD keyword computes at exactly the dimensions listed, ignoring the view?

Invest now in Acorns!!! 🚀 Join Acorns and get your $5 bonus!
Acorns Logo

Invest now in Acorns!!! 🚀
Join Acorns and get your $5 bonus!

Earn passively and while sleeping

Acorns is a micro-investing app that automatically invests your "spare change" from daily purchases into diversified, expert-built portfolios of ETFs. It is designed for beginners, allowing you to start investing with as little as $5. The service automates saving and investing. Disclosure: I may receive a referral bonus.

Robinhood Logo

Invest now!!! Get Free equity stock (US, UK only)!

Use Robinhood app to invest in stocks. It is safe and secure. Use the Referral link to claim your free stock when you sign up!.

The Robinhood app makes it easy to trade stocks, crypto and more.


Webull Logo

Webull! Receive free stock by signing up using the link: Webull signup.

More Related questions...

What is a Tableau workbook? What is Tableau? What is a Tableau worksheet? What is data visualization? What are the different data connection options available in Tableau? What is a dashboard in Tableau? What are the different datatypes in Tableau? What is a story in Tableau? What are the different Tableau products? What are Measures and Dimensions in Tableau? What is Tableau Public? Advantages of Tableau. What is a parameter in Tableau? What is Tableau Server? What is Tableau Prep? What are filters in Tableau? What are the different types of filters in Tableau? What is a calculated field in Tableau? What is a Tableau extract? What is the difference between a live connection and an extract? What are the Rows, Columns, and Marks shelves used for? What is the Marks card used for? What is a dual-axis chart, and how do you create one? What is data blending in Tableau? What is the difference between data blending and a join in Tableau? What are the types of joins supported in Tableau? What is a context filter, and why would you use one? What is the order of operations for filters in Tableau? What are Sets in Tableau? What are Groups in Tableau? What is the difference between a Set and a Group in Tableau? What is a hierarchy in Tableau? What are table calculations in Tableau? What is the difference between a calculated field and a table calculation? What is a Level of Detail (LOD) expression? What is the difference between FIXED and INCLUDE LOD expressions? What is a Tableau action? What is the difference between discrete and continuous fields in Tableau? What are the aggregate functions available in Tableau? What is the difference between a.twb and a.twbx file? What is VizQL? How does Tableau handle NULL values? What is a Gantt chart, and when would you use one in Tableau? What is a heat map in Tableau? What is a treemap in Tableau? What is forecasting in Tableau? What are reference lines and reference bands in Tableau? What is a bin in Tableau, and how is it different from a histogram? What is row-level security in Tableau? What is the difference between Tableau Desktop and Tableau Reader? What is a custom SQL connection in Tableau? What is the Tableau Hyper engine?
Show more question and Answers...

Apache Airflow Interview Questions

Comments & Discussions