Joins, Data Blending, and Filter Order in Tableau
Hard · Analytics & Experimentation · Data Scientist · Technical Screen
Prompt
Suppose you are working in Tableau with two tables at different levels of detail:
Primary source — Bookings (BookingID, Region, Segment, Revenue):
- (B1, West, Enterprise, 120)
- (B2, West, Mid-Market, 240)
- (B3, East, Cloud, 180)
- (B4, Central, Enterprise, 360)
- (B5, West, Cloud, 60)
Secondary source — Quotas (Region, Segment, QuarterlyQuota):
- Q1: (West, Enterprise, 600)
- Q2: (West, Cloud, 450)
- Q3: (East, Enterprise, 300)
- Q4: (South, Cloud, 700)
Walk through each of the five questions below with exact output tables and clear reasoning:
- Physical joins: If you build a single Tableau data source using a physical inner join on
(Region, Segment), which records remain and what doSUM(Revenue)andSUM(QuarterlyQuota)evaluate to per(Region, Segment)? How do those surviving rows and aggregates change under a physical left join withBookingson the left andQuotason the right? - Data blending mechanics: Suppose instead you keep
Bookingsas the primary source and blendQuotasas the secondary source on a sheet withRegionandSegmenton Rows andSUM(Revenue)andSUM(QuarterlyQuota)on Columns. Walk through how Tableau executes the blend, explain which unmatched keys (West–Mid-Market,East–Cloud,Central–Enterprise,East–Enterprise,South–Cloud) appear or disappear, and clarify whether missing numbers render asNULLor0and why. - Filters & execution order: Using Tableau's order of operations, determine the resulting rows and explain why for each individual filter:
- (a) a dimension filter
Segment = 'Enterprise'taken fromBookings; - (b) a dimension filter
Segment = 'Enterprise'taken fromQuotas; - (c) a context filter
Region = 'West'applied onBookings; - (d) a measure filter
SUM(Revenue) > 180on the worksheet; - (e) a data source filter on
QuotasretainingSegment IN ('Enterprise', 'Cloud').
- (a) a dimension filter
- Granularity & cardinality traps: Explain two concrete failure modes where a blend and a physical join return different totals because of grain mismatches, duplicate keys, or many-to-many matches, illustrating each with numbers from
BookingsandQuotas. - Choosing blending vs. joining: Outline when data blending is preferable to a physical join in Tableau, addressing published or multi-engine connections, mismatched table grains, worksheet-level linking fields, query caching and high-cardinality performance, and restrictions on secondary-source formulas (such as
FIXEDLODs, non-additive aggregations, and table calculations).
Scope & Expectations
- Compute exact row-by-row
SUM(Revenue)andSUM(QuarterlyQuota)results for inner joins, left joins, data blends, and all five filter scenarios, distinguishingNULLfrom0and primary-only keys from secondary-only keys. - Tie every filter outcome directly to its stage in Tableau's execution pipeline, including how context filters interact with
FIXEDLODs andTop Nrules and how filtering a secondary or right-joined column affectsNULLmatches. - Demonstrate both row-multiplication fan-out and worksheet-dependent active linking fields using concrete arithmetic on the sample tables.
- Weigh architectural trade-offs around Tableau Server published sources, modern Relationships, linking-key cardinality, and calculation constraints across secondary sources.
Step-by-step walkthrough
Map the grain and key overlap of both sources
Every behavior in Tableau — joins, blends, nulls, and filters — comes down to two questions: what does one row represent (the table's grain, or granularity), and which keys exist on each side?
Bookings(Primary) is at the booking grain (one row per deal): 5 rows, totalSUM(Revenue) = 960. HereRegionandSegmentare dimensions (categorical columns you group or slice by) andRevenueis a measure (a numeric column you aggregate, such asSUM).Quotas(Secondary) is at the Region × Segment grain (one row per quarterly goal): 4 rows, totalSUM(QuarterlyQuota) = 2,050.
Line up all seven
(Region, Segment)combinations across both tables:Region Segment Bookings (Primary) Quotas (Secondary) Match status -------------------------------------------------------------------------------------------- West Enterprise B1: Revenue = 120 Q1: Quota = 600 Both sides West Cloud B5: Revenue = 60 Q2: Quota = 450 Both sides West Mid-Market B2: Revenue = 240 — Bookings only East Cloud B3: Revenue = 180 — Bookings only Central Enterprise B4: Revenue = 360 — Bookings only East Enterprise — Q3: Quota = 300 Quotas only South Cloud — Q4: Quota = 700 Quotas only -------------------------------------------------------------------------------------------- Totals 5 rows, Revenue = 960 4 rows, Quota = 2,050Notice two crucial facts right away: 1. Only two keys (
West–EnterpriseandWest–Cloud) exist in both tables. NoticeEastappears in both tables, not on the same segment (BookingshasEast–Cloud;QuotashasEast–Enterprise). 2. Every(Region, Segment)pair appears at most once inBookingsand at most once inQuotas, so a two-column join will not duplicate rows yet — until we test coarser keys and duplicate rows in Part 4.Keep this one-sentence rule in mind throughout: a physical join combines raw rows first and aggregates afterward; a data blend aggregates each data source separately first and left-joins the summaries afterward.
Part 1: Physical inner join vs. physical left join
A physical join merges
BookingsandQuotasinto a single flat table inside one Tableau data source before any worksheet builds a chart, working just like SQL:SELECT b.Region, b.Segment, SUM(b.Revenue) AS sum_revenue, SUM(q.QuarterlyQuota) AS sum_quota FROM Bookings b INNER JOIN Quotas q -- or LEFT JOIN Quotas q for the left join ON b.Region = q.Region AND b.Segment = q.Segment GROUP BY b.Region, b.Segment;- Physical inner join on
(Region, Segment): Only pairs present in both tables survive (B1paired withQ1, andB5paired withQ2). Unmatched bookings (B2, B3, B4) and unmatched quotas (Q3, Q4) are discarded:
Surviving joined rows: (B1 + Q1) and (B5 + Q2) Region Segment SUM(Revenue) SUM(QuarterlyQuota) -------------------------------------------------------- West Enterprise 120 600 West Cloud 60 450 -------------------------------------------------------- Grand Total 180 1,050- Physical left join (
Bookings -> Quotas) on(Region, Segment): All 5 rows from the left table (Bookings:B1..B5) survive. RowsB1andB5attach quotas600and450; unmatched rowsB2,B3, andB4getNULLin every column coming fromQuotas. Placing Bookings'RegionandSegmenton Rows (important: usingQuotas.RegionandQuotas.Segmentwould lumpB2, B3, B4under(Null, Null)) produces:
Surviving joined rows: B1+Q1, B2+NULL, B3+NULL, B4+NULL, B5+Q2 (all 5 bookings) Region Segment SUM(Revenue) SUM(QuarterlyQuota) -------------------------------------------------------- Central Enterprise 360 NULL East Cloud 180 NULL West Cloud 60 450 West Enterprise 120 600 West Mid-Market 240 NULL -------------------------------------------------------- Grand Total 960 1,050In both joins,
East–Enterprise (300)andSouth–Cloud (700)disappear (1,000of quota omitted) because neither key has any booking row to attach to.- Physical inner join on
Part 2: How data blending computes the view and treats unmatched members
In data blending,
BookingsandQuotasstay two separate Tableau data sources. Dragging the first field onto the sheet fromBookingsmarksBookingsas the primary source (blue checkmark) andQuotasas the secondary source (orange checkmark). WhenRegionandSegmentfromBookingssit on Rows andSUM(Revenue),SUM([Quotas].[QuarterlyQuota])sit on Columns, Tableau executes four steps:- Activate linking fields: Because
RegionandSegmenthave identical names in both sources and both primary fields are in the view, Tableau automatically enables the orange chain-link icon on bothRegionandSegment. - Query the primary source (
Bookings) at the worksheet's level of detail (GROUP BY Region, Segment), returning 5 aggregated rows. Each row defines one mark (a visual row/bar on the worksheet). - Query the secondary source (
Quotas) grouped solely by the active linking fields (GROUP BY Region, Segment), returning 4 aggregated rows. - Left-blend in memory: Inside Tableau's local data engine, Tableau left-joins the secondary's 4 aggregated rows onto the primary's 5 aggregated rows on
(Region, Segment):
Primary query (Bookings, 5 groups) Secondary query (Quotas, 4 groups) Blended view ---------------------------------- ---------------------------------- -------------------------- West, Enterprise -> 120 <======> West, Enterprise -> 600 West, Enterprise 120 | 600 West, Mid-Market -> 240 <-- no match West, Mid-Market 240 | NULL West, Cloud -> 60 <======> West, Cloud -> 450 West, Cloud 60 | 450 East, Cloud -> 180 <-- no match (East, Enterprise = 300 unused) East, Cloud 180 | NULL Central, Enterprise -> 360 <-- no match (South, Cloud = 700 unused) Central, Ent. 360 | NULLHow and why each unmatched member behaves: -
East–Cloud(180 | NULL),Central–Enterprise(360 | NULL), andWest–Mid-Market(240 | NULL): Because they exist in the primary (Bookings), their row headers do appear, showing theirSUM(Revenue). TheirSUM(QuarterlyQuota)is NULL (rendered as a blank cell in a text table or a missing bar/null indicator on a continuous axis), not0. Why? No matching(Region, Segment)group returned fromQuotas, and in SQL/Tableau the sum of zero matched records isNULL("unknown / no quota assigned"), whereas0would falsely assert "the quarterly quota is 0". (Wrapping the field inZN(SUM([Quotas].[QuarterlyQuota]))convertsNULLto0, if desired.) -South–Cloud(700) andEast–Enterprise(300): They do not appear anywhere in the view — neither their quotas nor null/zero revenue show up. Why? The primary query alone determines which dimension marks exist on the worksheet; a blend never appends extra rows from secondary-only members.- Activate linking fields: Because
Part 3 (pipeline): Tableau's order of operations
To predict any filter in Tableau, locate where that filter sits in Tableau's fixed execution pipeline (top runs earliest, bottom runs latest):
1. Extract Filters (when creating a local .hyper data extract) 2. Data Source Filters (applied to an entire data source before any sheet sees it) 3. Context Filters (sheet-level "pre-filter"; subsets data for Steps 4–9) 4. Sets, Conditional & Top N, (FIXED LOD = Level of Detail calc evaluated at fixed FIXED LOD Expressions dimensions regardless of what is on the sheet) 5. Dimension Filters (ordinary categorical filters, like SQL WHERE) 6. Data Blending (secondary summary attached to primary marks) 7. INCLUDE / EXCLUDE LODs (sheet-relative Level of Detail expressions) 8. Measure Filters (filters on aggregated values, like SQL HAVING) 9. Table Calculations & Totals (RANK, WINDOW_SUM, % of Total on visible marks)Two ordering rules drive the filter questions below: - Context filters (Step 3) execute before Top N and
FIXEDLODs (Step 4), whereas Dimension filters (Step 5) execute after them. - Measure filters (Step 8) execute after aggregation and blending, testing the already-summed numbers per mark.Part 3 (a–e): How each of the five filters changes the results
Below are the exact surviving rows for the blended view (
Region, Segment | SUM(Revenue) | SUM(QuarterlyQuota)), along with how the physical joins behave when they differ:-
(a) Dimension filter
Segment = 'Enterprise'fromBookings(primary) — runs at Step 5: AddsWHERE Segment = 'Enterprise'to the primaryBookingsquery before blending. Both Enterprise bookings (B1inWestandB4inCentral) survive, andQuotasfills inWest–Enterprise:text Blend & Left Join: West, Enterprise | 120 | 600 Central, Enterprise | 360 | NULL Inner Join: West, Enterprise | 120 | 600 (Central had no quota match) -
(b) Dimension filter
Segment = 'Enterprise'fromQuotas(secondary) — runs at Steps 5–6: Restricts the secondary query to'Enterprise'(Q1andQ3) and filters the blended view to primary marks whose linked secondarySegmentequals'Enterprise'. ForCentral–Enterprise,Quotashas no(Central, Enterprise)row, so its linked[Quotas].[Segment]isNULL(shown as a separateNullcheckbox on a secondary filter card). Selecting'Enterprise'(withoutNull) dropsCentral–Enterprisetoo! AndEast–Enterprise (300)still cannot appear becauseBookingshas noEast–Enterprisemark:text Blend: West, Enterprise | 120 | 600 (Central, Enterprise dropped because linked quota is NULL!) Left & Inner Join: West, Enterprise | 120 | 600 (WHERE q.Segment = 'Enterprise' also rejects NULLs) -
(c) Context filter
Region = 'West'onBookings— runs at Step 3: Scopes the entire sheet toWestrows ofBookings(B1, B2, B5) near the very top of the pipeline:text Blend & Left Join: West, Enterprise | 120 | 600 West, Mid-Market | 240 | NULL West, Cloud | 60 | 450 Inner Join: West, Enterprise | 120 | 600 West, Cloud | 60 | 450Why context (Step 3) matters vs. a normal dimension filter (Step 5): On this plain sheet the visible rows look identical to a normalRegion = 'West'dimension filter, until you add a Step-4 object! For example,{FIXED [Segment] : SUM([Revenue])}onEnterprisereturns480(120West +360Central) under a normal dimension filter, vs.120under the context filter; similarly, aTop 1 Segment by SUM(Revenue)filter picksEnterprise(480overall -> showingWest–Enterprise = 120) under a normal filter, vs.Mid-Market(240, truly #1 insideWest) under the context filter. -
(d) Measure filter
SUM(Revenue) > 180applied to the view — runs at Step 8: Evaluated after grouping by(Region, Segment)and blending (HAVING SUM(Revenue) > 180). Because>is strict,East–Cloud(180) is excluded, along withWest–Enterprise(120) andWest–Cloud(60):text Blend & Left Join: West, Mid-Market | 240 | NULL Central, Enterprise | 360 | NULL Inner Join: (empty view — its two rows had Revenue 120 and 60) -
(e) Data source filter on
QuotaskeepingSegment IN ('Enterprise', 'Cloud')— runs at Step 2: CheckQuotas(Q1, Q2, Q3, Q4): every single row inQuotasalready hasSegmentequal to'Enterprise'or'Cloud'.- In the blend: Because
Quotasis an independent data source, its Step-2 data source filter only filtersQuotasbefore blending and never touches primaryBookings. All 4Quotasrows and all 5Bookingsrows remain — all 5 blended rows are completely unchanged (includingWest, Mid-Market | 240 | NULL). - In a physical left join: Inside one joined data source, adding a data source filter on
[Segment (Quotas)] IN ('Enterprise', 'Cloud')filters the already-joined rows (WHERE q.Segment IN (...)). Unmatched bookingsB2, B3, B4haveq.Segment = NULL, which failsIN (...), silently turning the left join into the 2-row inner join (West–Enterprise 120 | 600,West–Cloud 60 | 450) unlessNullis also kept!
- In the blend: Because
-
Part 4: Two pitfalls where blending and joining give different totals
-
Pitfall 1 — Row fan-out (many-to-many / duplicate keys) inflates joins, while blends aggregate first: Fan-out happens when one row on one side matches multiple rows on the other side, multiplying rows before
SUMruns.- Example A (duplicate
Region–Segmentrow inQuotas): SupposeQuotasaccidentally contains two rows for(West, Enterprise):Q1a = (West, Enterprise, 600)andQ1b = (West, Enterprise, 600). A physical join pairsB1 (Revenue = 120)with bothQ1aandQ1b, creating 2 rows and doublingSUM(Revenue)to240(wrong!) alongsideSUM(QuarterlyQuota) = 1,200. A blend sumsBookingsbefore combining, soSUM(Revenue)stays exact at120(noteQuotasstill sums its own two rows to1,200unless you aggregate the secondary withMIN/AVGor cleanQuotas). - Example B (many-to-many on the given data when matching on
Regionalone): InWest,Bookingshas 3 rows (120 + 240 + 60 = 420) andQuotashas 2 rows (600 + 450 = 1,050). Physically joining onRegionalone produces3 × 2 = 6rows forWest: every booking repeats twice and every quota repeats three times!text West totals when matched on Region only: Physical Join on Region: SUM(Revenue) = 2 × 420 = 840 SUM(QuarterlyQuota) = 3 × 1,050 = 3,150 (both inflated!) Data Blend on Region: SUM(Revenue) = 420 SUM(QuarterlyQuota) = 1,050 (exact!)
- Example A (duplicate
-
Pitfall 2 — Changing the sheet's level of detail changes active blend links (and produces
*): Suppose you build a regional summary by placing onlyRegionon Rows (removingSegmentfrom the sheet):- In the physical left join on
(Region, Segment), the join condition is locked into the data source. InEast,B3 (East, Cloud, 180)still fails to matchQ3 (East, Enterprise, 300), soEastdisplays180 | NULL. - In the blend, Tableau only auto-links fields used in the view! Removing
Segmentfrom the sheet automatically unlinksSegment(unless you manually click the broken chain icon next toSegmentinQuotas). Now Tableau blends onRegionalone, attachingEast's Enterprise quota (300) directly ontoEast's Cloud revenue (180): ```text Summary view with only Region on Rows: Region Left Join on (Region, Segment) Blend (auto-linked on Region only)
- In the physical left join on
West 420 | 1,050 420 | 1,050 East 180 | NULL 180 | 300 <-- Enterprise quota paired with Cloud revenue! Central 360 | NULL 360 | NULL
`` Similarly, if you keep onlyBookings.Regionon Rows and dragQuotas.Segmentonto Text, Tableau wraps the secondary dimension inATTR([Segment])(which returns a single value if unique, else) and shows **** forWestbecause two quota segments (EnterpriseandCloud) map to the singleWest` mark.-
Part 5: When to prefer blending over joining (and key trade-offs)
Prefer blending over a physical join in three specific situations: 1. Sources that cannot be joined or related in one data source: Published Tableau Server / Tableau Cloud data sources and OLAP cubes cannot participate in physical joins or Relationships; blending is the built-in way to combine two published data sources or prototype a quick single-sheet mashup without editing a shared data model. (Note: for raw tables across different SQL engines — say Postgres and Snowflake — Tableau does support cross-database joins and modern Relationships, which keep tables separate and aggregate cleanly at query time.) 2. Mismatched granularity without remodeling: When comparing deal-level
Bookingsagainst quarterlyQuotasand Relationships are unavailable, blending prevents deal rows from multiplying quarterly quotas. 3. Sheet-specific linking logic: Joins fix one match rule for the entire workbook, whereas blend links are toggled per worksheet (Sheet 1 can link onRegion + Segment; Sheet 2 can intentionally link onRegionalone).Always weigh four operational trade-offs of blending: - Linking field rules: Linked values must match identically in data type, case, and spelling (
"West"!="WEST"), and activating multiple links acts asAND(every active link must match). - Performance and caching: Tableau fires oneGROUP BYquery per source and caches each source's result independently (handy when one source is a fast local extract and the other is a slow live warehouse). Blending is fast when the active links have low cardinality (few distinct groups, like 4 regions × 3 segments = 12 rows), and painfully slow on high-cardinality links (likeBookingIDorAccountIDwith millions of groups) because Tableau must pull both massive result sets into local memory to join them without database indexes. - Calculation limits on secondary sources: - Every secondary reference inside a primary calculation must be aggregated (SUM([Revenue]) / SUM([Quotas].[QuarterlyQuota])works; row-level[Revenue] / [Quotas].[QuarterlyQuota]is rejected). - Non-additive aggregates (COUNTD,MEDIAN) and LOD expressions (FIXED,INCLUDE,EXCLUDE) involving the secondary fail with "unsupported aggregation" whenever a linking field is absent from the view or secondary dimensions/filters are active; meanwhile, a primaryFIXEDLOD runs at Step 4 before blending and cannot reference secondary fields at all. - Table calculations (WINDOW_SUM,RANK,% of Total) run at Step 9 after blending so they can combine both sources, except they only see marks present in the primary — soSouth–Cloud's700quota andEast–Enterprise's300quota are permanently excluded fromWINDOW_SUM(SUM([Quotas].[QuarterlyQuota]))(1,050instead of2,050).
Intuition & how it works
Imagine comparing a stack of individual signed deal slips (Bookings) against a single quarterly goal sheet (Quotas).
- A physical join works like stapling the matching quarterly goal sheet directly onto every single deal slip first, and adding up the columns second.
- A data blend works like handing each stack to a separate analyst: Analyst 1 totals the deal slips per (Region, Segment) on a summary clipboard, Analyst 2 totals the goals per (Region, Segment) on a second clipboard, and Tableau tapes Analyst 2's numbers next to Analyst 1's lines (left-joining the summaries).
Beginners often assume a data blend is "just a left join across two data sources." That shortcut fails in three classic places: (1) if three deals in West match two quotas in West on Region, a physical join staples every deal to every quota (3 × 2 = 6 rows, inflating both sums!), whereas a blend totals each clipboard first; (2) if you remove Segment from a blended chart, Tableau quietly unlinks Segment and glues mismatched segments together under the same Region; and (3) filtering a column from the secondary or right-hand table drops unmatched NULL rows that a primary filter would keep.
Walk through three keys from our data to see the whole mechanism in miniature:
- West–Enterprise (B1 = 120 in Bookings, Q1 = 600 in Quotas): matches on both sides, so inner join, left join, and blend all show 120 | 600.
- East–Cloud (B3 = 180 in Bookings, while Quotas only has East–Enterprise = 300): inner join drops East–Cloud; both left join and (Region, Segment) blend keep East–Cloud with Revenue = 180 and QuarterlyQuota = NULL (blank, not 0, because no quota exists). Yet if you drop Segment from the blended sheet, Segment unlinks and East suddenly displays 180 | 300!
- South–Cloud (no bookings, Q4 = 700 in Quotas): vanishes in inner join, left join, and blend, because in a blend the primary (Bookings) alone decides which visual marks (rows/bars) exist on the sheet.
Key points
- Join = combine rows, then aggregate; blend = aggregate each source, then left-join summaries. Inner join keeps only
West–Enterprise (120 | 600)andWest–Cloud (60 | 450). Left join (Bookings -> Quotas) and the(Region, Segment)blend keep all 5Bookingskeys withNULLquotas onWest–Mid-Market (240),East–Cloud (180), andCentral–Enterprise (360), while omitting secondary-only keys (East–Enterprise 300,South–Cloud 700). - Missing blend matches yield
NULL, never0, and secondary-only members create zero marks.NULLmeans "zero rows matched in the secondary query," whereas0means "a quota of zero was assigned." Secondary-only members never appear unless you flip primary/secondary or use a scaffold/outer join. - Filter outcomes follow Tableau's order of operations (Extract -> Data Source -> Context -> Sets/Top N/
FIXEDLOD -> Dimension -> Blending ->INCLUDE/EXCLUDELOD -> Measure -> Table Calcs):- (a) Primary
Bookings.Segment = 'Enterprise'(Step 5): keepsWest–Enterprise (120 | 600)andCentral–Enterprise (360 | NULL)in blend/left join (West–Enterpriseonly in inner join). - (b) Secondary
Quotas.Segment = 'Enterprise'(Steps 5–6): drops unmatchedNULLlinks too, leaving onlyWest–Enterprise (120 | 600)across blend, left join, and inner join. - (c) Context
Bookings.Region = 'West'(Step 3): keeps the 3Westrows (120|600,240|NULL,60|450), and — unlike a Step-5 dimension filter — restricts Step-4Top NandFIXEDLOD (Level of Detail) expressions (formulas evaluated at fixed dimensions independent of the view) toWestfirst. - (d) Measure
SUM(Revenue) > 180(Step 8): runs post-aggregation (>excludes180), leavingWest–Mid-Market (240 | NULL)andCentral–Enterprise (360 | NULL)in blend/left join and an empty view in inner join. - (e) Data source filter on
Quotasfor('Enterprise', 'Cloud')(Step 2): leaves the blend 100% unchanged (all 4Quotasrows pass, and primaryBookingsis untouched), whereas putting that filter on[Segment (Quotas)]inside a single left-joined data source dropsNULLrows (B2, B3, B4) and collapses the left join into an inner join.
- (a) Primary
- Two classic aggregation pitfalls: (1) Fan-out (row multiplication in many-to-many joins: joining on
RegionturnsWest's3 × 2rows into840 | 3,150vs. the blend's true420 | 1,050; duplicatingWest–EnterpriseinQuotasdoubles joinedRevenueto240while blendedRevenuestays120), and (2) View-dependent active links (removingSegmentfrom a blended sheet unlinksSegmentunless manually pinned, pairingEastCloud revenue180withEastEnterprise quota300, and collapsing multiple secondary strings into*viaATTR()). - Prefer blending for published sources, cubes, or per-sheet links; prefer Relationships/joins otherwise. Blending queries and caches each source separately, excels on low-cardinality links, struggles on high-cardinality keys (
BookingID), requires secondary fields to be aggregated, restricts secondaryCOUNTD/MEDIAN/LODs, and omits secondary-only rows from table-calculation totals.
Common mistakes
- Treating
NULLquotas as0(or blindly wrapping inZN()). TurningCentral–Enterprise'sNULLquota into0makesSUM(Revenue) - ZN(SUM(QuarterlyQuota))report+360 above quotawhenCentralactually had no quota assigned at all. - Expecting
South–Cloud (700)to show up withNULLrevenue in a blend. BecauseBookingsis primary and has noSouthrows,South–Cloudnever gets a mark in the view and is excluded from grand totals. - Filtering on a secondary or right-joined dimension and accidentally losing unmatched primary rows. Both
(b)(Quotas.Segment = 'Enterprise') and(e)on a left join discard primary rows whose right-hand columns areNULLunlessNullis explicitly included. - Expecting a standard dimension filter (Step 5) to scope
Top NorFIXEDLODs (Step 4). You must promoteRegion = 'West'to a context filter ("Add to Context") so it executes at Step 3 ahead of Step 4. - Assuming blending cures duplicate rows inside the secondary table. Blending protects primary measures from multiplying, not secondary ones — duplicate
(West, Enterprise, 600)rows insideQuotasstill sum to1,200in the secondary query unless deduplicated or aggregated withMIN/AVG. - Blending on high-cardinality keys like
BookingIDorCustomerID. Pulling hundreds of thousands of grouped keys from two databases into Tableau's local memory to merge is orders of magnitude slower than an indexed database join.
Follow-up questions
- How would a Tableau Relationship handle these two tables differently from a physical join or a data blend? A Relationship keeps
BookingsandQuotasas separate logical tables at their native grains and generates grain-aware SQL joins per worksheet, soWestnever suffers3 × 2fan-out (Weststays420 | 1,050, just like a blend). Unlike a blend, however, the matching condition (RegionandSegment) is defined once in the data model rather than tied to which fields are on the sheet, so aRegion-only sheet still respects theSegmentmismatch and showsEastas180 | NULLinstead of180 | 300. Even better, Relationships are not stuck as left joins — bringingQuotasmeasures onto the sheet can surface unmatched quota rows (East–Enterprise 300andSouth–Cloud 700, totaling2,050) without dropping booking-only rows, though Relationships still cannot connect two already-published Tableau Server data sources. - What approach would you use if stakeholders needed all seven Region-by-Segment combinations, including quota-only pairs, in one view? Making
Quotasthe primary source in a blend is not enough, because that simply flips the problem and hides the three booking-only keys (West–Mid-Market,East–Cloud,Central–Enterprise). When you can edit the data source, use a physical full outer join (or a Relationship) on(Region, Segment)and display coalesced dimension headersIFNULL([Bookings].[Region], [Quotas].[Region])andIFNULL([Bookings].[Segment], [Quotas].[Segment]). When both sources are published data sources that must be blended, create a tiny master key scaffold table listing every valid(Region, Segment)pair as the primary source and blend bothBookingsandQuotasonto that scaffold as secondaries, preserving the full960in revenue and2,050in quotas. - How would you construct a safe quota-attainment ratio across blended data sources without distorting missing or duplicate quotas? Define the calculated field in the primary (
Bookings) using aggregated expressions on both sides —SUM([Revenue]) / SUM([Quotas].[QuarterlyQuota])— because Tableau forbids row-level references to secondary fields. Do not wrap the denominator inZN(...): Tableau already evaluates both180 / NULLand180 / 0toNULL(avoiding divide-by-zero crashes), and keeping missing quotas asNULLprevents companion KPIs likeAVG(QuarterlyQuota)orRevenue - QuarterlyQuotafrom treating unbudgeted regions (Central) as0quotas. Finally, verify that(Region, Segment)is unique inQuotas(or switch the denominator toMIN/AVGif repeated across sub-rows) soWest–Enterprisecomputes120 / 600 = 20%rather than120 / 1,200 = 10%.
Follow-up questions
- How would a Tableau Relationship handle these two tables differently from a physical join or a data blend?
- What approach would you use if stakeholders needed all seven Region-by-Segment combinations, including quota-only pairs, in one view?
- How would you construct a safe quota-attainment ratio across blended data sources without distorting missing or duplicate quotas?
Similar questions
- Report Repeated Integers in First-Appearance Order
- Independent vs. Stratified Ad Placement in a 100-Item Feed
- Customer Support Costing, Metric Drops, and Order Defects
- Causal Evaluation of a Regional Feature Rollout
- Evaluating a Paid-Plan Trial Experiment
- Experiment Analysis Under Margin and Capacity Trade-Offs