Adding Analytical Power to Your Dashboards
So far, you’ve learned how to create compelling, interactive visualizations. But what if your data doesn’t tell the whole story—yet? That’s where calculated fields and data blending come in. This module teaches you how to build your own metrics, logic, and relationships, so Tableau can analyze your data the way your business actually works.
Learning Objectives
By the end of this module, you will be able to:
Create calculated fields using built-in Tableau functions
Apply string, date, number, and logical expressions
Use table calculations for ranked, percent, and moving average metrics
Understand and apply Level of Detail (LOD) expressions
Combine data from multiple sources using joins and blending
Troubleshoot common data relationship challenges
Lesson Breakdown
4.1 Introduction to Calculated Fields
What is a calculated field?
When to create your own metrics or logic
Creating basic calculations: profit margin, sales per customer
Overview of calculated field editor
Hands-on: Build a “Profit Ratio” field from Sales and Profit
4.2 Common Functions in Tableau
String functions: LEFT, RIGHT, LEN, FIND, CONCAT
Date functions: TODAY, DATEDIFF, DATEPART
Numerical functions: ROUND, CEILING, ZN, ABS
Logical functions: IF/THEN, CASE, ISNULL
Hands-on: Clean messy data fields with string and date calculations
“Data preparation inside Tableau reduces your reliance on upstream fixes.”
4.3 Table Calculations
What are table calculations? How do they differ from calculated fields?
Common uses: Running totals, percent of total, moving averages
Understanding Compute Using and Table (Down) logic
Hands-on: Build a chart showing YOY growth using table calculations
4.4 Level of Detail (LOD) Expressions
FIXED, INCLUDE, and EXCLUDE explained
When to use LOD vs table calculations
Creating complex aggregations across different levels of granularity
Hands-on: Build a view showing each customer’s average order value, regardless of filter
"LOD expressions let you write business rules the way your CEO thinks—not the way your table is structured."
4.5 Data Blending and Relationships
Tableau’s two-layer model: logical vs physical layer
Joins: inner, left, right, full outer
Data blending vs relationships – what’s changed in recent Tableau versions
Primary vs secondary data sources
Hands-on: Blend Excel sales data with SQL customer data to build a full performance view
4.6 Troubleshooting Calculations and Data Blending
Common errors: null values, aggregation mismatches, level of detail conflicts
Debugging tools: describe sheet, calculation audit, performance recorder
Best practices for documentation and calculation naming