Tableau Analytics: Shelves, Calculated Fields, LOD Expressions, and Stories
What You'll Learn
- 1Build views using rows, columns, marks, and filters deliberately
- 2Write calculated fields and level of detail expressions correctly
- 3Use table calculations with awareness of addressing and partitioning
- 4Assemble dashboards and stories that drive decisions
Tableau turns relational and flat data into fast interactive visual analysis through a drag and drop shelves model. Calculated fields, table calculations, and level of detail expressions extend the tool from simple charts to governed analytic logic. Mastery lies in understanding aggregation, filters order, and data model relationships rather than memorizing menus.
Shelves, Marks, and Filter Order
Rows and columns shelves define the canvas axes, while the marks card encodes color, size, shape, detail, and tooltips. Discrete pills create headers and continuous pills create axes, a distinction that explains many beginner layout surprises. Filters apply in a known order from data source filters through context filters, dimensions, measures, and table calculations.
Context filters matter because they recompute domain dependent calculations after the rest of the dataset is narrowed. Sort, group, and set members directly on the view to keep exploration fast, then convert stable logic into calculated fields for reuse.
Calculated Fields and LOD
Calculated fields mix aggregations, string, date, and logical functions in the view grammar. Table calculations compute across the result set and require addressing versus partition settings for window and ratio functions. Level of detail expressions fix aggregation at grand, include, or exclude detail independent of the view dimensions.
Common LOD patterns include fixed customer metrics at extract time, exclude view noise when computing share, and include supporting dimensions without changing the marks layout. Choosing between aggregate calcs, table calcs, and LOD is a grain decision first and a syntax decision second.
Data Models, Dashboards, and Stories
Tableau data models support relationships and logical layers that preserve detail while joining at the right grain. Calculated fields and parameters power interactivity, while containers, zones, and layout rules create dashboards that resize sanely. Story points sequence annotated views for narrative reviews without exporting slides.
Design for action: place KPI and trend context up top, filters where the eye expects them, and detail tables for drill support. Publish to Tableau Cloud with schedules, subscriptions, row level security, and certified data sources for trust at scale.
Calculated Field Decision Guide
| Need | Approach | Notes |
|---|---|---|
| Simple row logic | Row level calculated field | Evaluated pre aggregation in many contexts |
| Percent of total across view | Table calculation | Understand addressing and partitioning |
| Metric fixed to customer grain | Fixed LOD | Independent of view dimensions |
| Ignore a dimension in view | Exclude LOD | Careful with domain filters |
| Add dimension without marks clutter | Include LOD | Useful for ratios and counts |
| User input scenarios | Parameter plus calc | Great for what if toggles |
Real-World Examples
- Share of total â Percent of total using table calculation with proper addressing gives channel share inside each region when partitioned correctly.
- Fixed LTV â Fixed customer lifetime revenue computed once per customer for segmentation regardless of dashboard filters on order fields.
- Top N filter â Use a set or rank calculated field with a parameter for top products, then keep other filters as context appropriately.
- Story point review â A quarterly business story sequences market overview, segment trends, and recommended actions with annotations on each view.
đ¯LOD Interview Staple
Common Mistakes
Confusing discrete and continuous pills
Fix: Headers versus axes change layout and addressing; check pill types when a view looks unexpectedly categorical.
Ignoring table calc scope
Fix: Without correct addressing and partitioning, window totals repeat or reset in surprising places.
Over joining and fanout
Fix: Use relationships or carefully modeled joins; always validate measures against source totals after modeling changes.
Key Takeaways
- Discrete versus continuous pills control headers versus axes.
- Filter order and context filters shape calculated results.
- LOD expressions fix metric grain independent of view dimensions.
- Dashboards should prioritize action, clarity, and governed sources.
Frequently Asked Questions
Table calc or LOD expression?
Table calcs operate across the visual result; LOD computes at a specified data grain regardless of view. Pick based on where the logic must live.
Why does my percent of total look wrong?
Usually addressing and partitioning are off, or filters removed the domain you expected. Inspect compute using settings.
Extract or live connection?
Extracts improve performance and portability; live connections favor freshness and database scale. Many teams mix both by use case.
Interview Questions
Q1: Explain fixed LOD versus include and exclude.
Fixed computes at a stated dimension list ignoring view dimensions. Include adds dimensions to view level calculations. Exclude removes dimensions so the calc aggregates above them.
Q2: How do you optimize a slow workbook?
Reduce data source columns, aggregate or filter early, optimize relationships and calculations, simplify dashboard objects, and check performance recorder hotspots.
Extended Learning: Beyond the Basics
Key Concepts Summary
This lesson covers fundamental concepts that serve as building blocks for more advanced topics. Master these basics before moving to intermediate and advanced material.
Prerequisite Knowledge
Before studying this topic in depth, ensure you understand:
- Basic definitions and terminology
- Core formulas and their derivations
- Common applications in real-world scenarios
- Typical pitfalls and misconceptions
Step-by-Step Walkthrough
Let us work through a complete example to solidify understanding:
Step 1: Identify the problem type. Determine which category this problem falls into and which approach is most appropriate.
Step 2: Apply the relevant formula. Substitute known values into the appropriate equation, paying attention to units and constraints.
Step 3: Simplify and solve. Work through the algebra step by step, checking each intermediate result.
Step 4: Verify the answer. Check that the solution satisfies the original conditions and makes logical sense.
Common Mistakes to Avoid
- Misidentifying the problem type â Always start by categorizing the problem
- Incorrect formula application â Verify the formula applies to your specific case
- Unit errors â Always check units are consistent throughout
- Sign errors â Pay careful attention to positive and negative values
- Rounding too early â Keep full precision until the final answer
- Forgetting constraints â Check that solutions satisfy all given conditions
Real-World Applications
Understanding this concept is essential for:
- Advanced problem solving in examinations
- Building intuition for more complex topics
- Developing analytical thinking skills
- Applying mathematical reasoning to practical situations
Practice Exercises
- Basic: Solve 5 problems of increasing difficulty using the core concept.
- Intermediate: Apply the concept to word problems with multiple steps.
- Advanced: Combine this concept with 2-3 other topics in a comprehensive problem.
- Challenge: Create your own problem that requires this concept plus additional knowledge.
Interview and Exam Tips
- Common question patterns: Identify which exam or interview formats test this topic
- Time management: Practice completing problems within time constraints
- Common traps: Know the typical mistakes examiners set as distractors
- Verification strategy: Develop a quick method to check your answer
Related Topics
- Previous Topic â Build on the foundation laid here
- Next Topic â See how this concept extends to more advanced material
- Practice Problems â Additional exercises with solutions
- Video Explanation â Visual walkthrough of key concepts
Quick Reference Card
| Concept | Formula/Rule | Key Insight | Common Use |
|---|---|---|---|
| Core Definition | See main text | Understand the intuition | Foundation for all applications |
| Key Formula | See main text | Memorize the derivation | Direct problem solving |
| Special Case | See main text | Recognize when it applies | Simplifies complex problems |
| Edge Case | See main text | Know the limitations | Avoids errors |
Further Reading
For students who want to go deeper:
- Standard textbooks on the subject
- Research papers applying this concept
- Online courses with video explanations
- Practice problem collections with detailed solutions