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:

  1. Physical joins: If you build a single Tableau data source using a physical inner join on (Region, Segment), which records remain and what do SUM(Revenue) and SUM(QuarterlyQuota) evaluate to per (Region, Segment)? How do those surviving rows and aggregates change under a physical left join with Bookings on the left and Quotas on the right?
  2. Data blending mechanics: Suppose instead you keep Bookings as the primary source and blend Quotas as the secondary source on a sheet with Region and Segment on Rows and SUM(Revenue) and SUM(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 as NULL or 0 and why.
  3. 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 from Bookings;
    • (b) a dimension filter Segment = 'Enterprise' taken from Quotas;
    • (c) a context filter Region = 'West' applied on Bookings;
    • (d) a measure filter SUM(Revenue) > 180 on the worksheet;
    • (e) a data source filter on Quotas retaining Segment IN ('Enterprise', 'Cloud').
  4. 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 Bookings and Quotas.
  5. 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 FIXED LODs, non-additive aggregations, and table calculations).

Scope & Expectations

  • Compute exact row-by-row SUM(Revenue) and SUM(QuarterlyQuota) results for inner joins, left joins, data blends, and all five filter scenarios, distinguishing NULL from 0 and 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 FIXED LODs and Top N rules and how filtering a secondary or right-joined column affects NULL matches.
  • 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

  1. 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, total SUM(Revenue) = 960. Here Region and Segment are dimensions (categorical columns you group or slice by) and Revenue is a measure (a numeric column you aggregate, such as SUM).
    • Quotas (Secondary) is at the Region × Segment grain (one row per quarterly goal): 4 rows, total SUM(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,050
    

    Notice two crucial facts right away: 1. Only two keys (West–Enterprise and West–Cloud) exist in both tables. Notice East appears in both tables, not on the same segment (Bookings has East–Cloud; Quotas has East–Enterprise). 2. Every (Region, Segment) pair appears at most once in Bookings and at most once in Quotas, 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.

  2. Part 1: Physical inner join vs. physical left join

    A physical join merges Bookings and Quotas into 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 (B1 paired with Q1, and B5 paired with Q2). 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. Rows B1 and B5 attach quotas 600 and 450; unmatched rows B2, B3, and B4 get NULL in every column coming from Quotas. Placing Bookings' Region and Segment on Rows (important: using Quotas.Region and Quotas.Segment would lump B2, B3, B4 under (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,050
    

    In both joins, East–Enterprise (300) and South–Cloud (700) disappear (1,000 of quota omitted) because neither key has any booking row to attach to.

  3. Part 2: How data blending computes the view and treats unmatched members

    In data blending, Bookings and Quotas stay two separate Tableau data sources. Dragging the first field onto the sheet from Bookings marks Bookings as the primary source (blue checkmark) and Quotas as the secondary source (orange checkmark). When Region and Segment from Bookings sit on Rows and SUM(Revenue), SUM([Quotas].[QuarterlyQuota]) sit on Columns, Tableau executes four steps:

    1. Activate linking fields: Because Region and Segment have identical names in both sources and both primary fields are in the view, Tableau automatically enables the orange chain-link icon on both Region and Segment.
    2. 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).
    3. Query the secondary source (Quotas) grouped solely by the active linking fields (GROUP BY Region, Segment), returning 4 aggregated rows.
    4. 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 | NULL
    

    How and why each unmatched member behaves: - East–Cloud (180 | NULL), Central–Enterprise (360 | NULL), and West–Mid-Market (240 | NULL): Because they exist in the primary (Bookings), their row headers do appear, showing their SUM(Revenue). Their SUM(QuarterlyQuota) is NULL (rendered as a blank cell in a text table or a missing bar/null indicator on a continuous axis), not 0. Why? No matching (Region, Segment) group returned from Quotas, and in SQL/Tableau the sum of zero matched records is NULL ("unknown / no quota assigned"), whereas 0 would falsely assert "the quarterly quota is 0". (Wrapping the field in ZN(SUM([Quotas].[QuarterlyQuota])) converts NULL to 0, if desired.) - South–Cloud (700) and East–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.

  4. 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 FIXED LODs (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.

  5. 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' from Bookings (primary) — runs at Step 5: Adds WHERE Segment = 'Enterprise' to the primary Bookings query before blending. Both Enterprise bookings (B1 in West and B4 in Central) survive, and Quotas fills in West–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' from Quotas (secondary) — runs at Steps 5–6: Restricts the secondary query to 'Enterprise' (Q1 and Q3) and filters the blended view to primary marks whose linked secondary Segment equals 'Enterprise'. For Central–Enterprise, Quotas has no (Central, Enterprise) row, so its linked [Quotas].[Segment] is NULL (shown as a separate Null checkbox on a secondary filter card). Selecting 'Enterprise' (without Null) drops Central–Enterprise too! And East–Enterprise (300) still cannot appear because Bookings has no East–Enterprise mark: 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' on Bookings — runs at Step 3: Scopes the entire sheet to West rows of Bookings (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 | 450 Why context (Step 3) matters vs. a normal dimension filter (Step 5): On this plain sheet the visible rows look identical to a normal Region = 'West' dimension filter, until you add a Step-4 object! For example, {FIXED [Segment] : SUM([Revenue])} on Enterprise returns 480 (120 West + 360 Central) under a normal dimension filter, vs. 120 under the context filter; similarly, a Top 1 Segment by SUM(Revenue) filter picks Enterprise (480 overall -> showing West–Enterprise = 120) under a normal filter, vs. Mid-Market (240, truly #1 inside West) under the context filter.

    • (d) Measure filter SUM(Revenue) > 180 applied 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 with West–Enterprise (120) and West–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 Quotas keeping Segment IN ('Enterprise', 'Cloud') — runs at Step 2: Check Quotas (Q1, Q2, Q3, Q4): every single row in Quotas already has Segment equal to 'Enterprise' or 'Cloud'.

      • In the blend: Because Quotas is an independent data source, its Step-2 data source filter only filters Quotas before blending and never touches primary Bookings. All 4 Quotas rows and all 5 Bookings rows remain — all 5 blended rows are completely unchanged (including West, 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 bookings B2, B3, B4 have q.Segment = NULL, which fails IN (...), silently turning the left join into the 2-row inner join (West–Enterprise 120 | 600, West–Cloud 60 | 450) unless Null is also kept!
  6. 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 SUM runs.

      • Example A (duplicate Region–Segment row in Quotas): Suppose Quotas accidentally contains two rows for (West, Enterprise): Q1a = (West, Enterprise, 600) and Q1b = (West, Enterprise, 600). A physical join pairs B1 (Revenue = 120) with both Q1a and Q1b, creating 2 rows and doubling SUM(Revenue) to 240 (wrong!) alongside SUM(QuarterlyQuota) = 1,200. A blend sums Bookings before combining, so SUM(Revenue) stays exact at 120 (note Quotas still sums its own two rows to 1,200 unless you aggregate the secondary with MIN/AVG or clean Quotas).
      • Example B (many-to-many on the given data when matching on Region alone): In West, Bookings has 3 rows (120 + 240 + 60 = 420) and Quotas has 2 rows (600 + 450 = 1,050). Physically joining on Region alone produces 3 × 2 = 6 rows for West: 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!)
    • Pitfall 2 — Changing the sheet's level of detail changes active blend links (and produces *): Suppose you build a regional summary by placing only Region on Rows (removing Segment from the sheet):

      • In the physical left join on (Region, Segment), the join condition is locked into the data source. In East, B3 (East, Cloud, 180) still fails to match Q3 (East, Enterprise, 300), so East displays 180 | NULL.
      • In the blend, Tableau only auto-links fields used in the view! Removing Segment from the sheet automatically unlinks Segment (unless you manually click the broken chain icon next to Segment in Quotas). Now Tableau blends on Region alone, attaching East's Enterprise quota (300) directly onto East's Cloud revenue (180): ```text Summary view with only Region on Rows: Region Left Join on (Region, Segment) Blend (auto-linked on Region only)

    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.

  7. 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 Bookings against quarterly Quotas and 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 on Region + Segment; Sheet 2 can intentionally link on Region alone).

    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 as AND (every active link must match). - Performance and caching: Tableau fires one GROUP BY query 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 (like BookingID or AccountID with 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 primary FIXED LOD 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 — so South–Cloud's 700 quota and East–Enterprise's 300 quota are permanently excluded from WINDOW_SUM(SUM([Quotas].[QuarterlyQuota])) (1,050 instead of 2,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) and West–Cloud (60 | 450). Left join (Bookings -> Quotas) and the (Region, Segment) blend keep all 5 Bookings keys with NULL quotas on West–Mid-Market (240), East–Cloud (180), and Central–Enterprise (360), while omitting secondary-only keys (East–Enterprise 300, South–Cloud 700).
  • Missing blend matches yield NULL, never 0, and secondary-only members create zero marks. NULL means "zero rows matched in the secondary query," whereas 0 means "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/FIXED LOD -> Dimension -> Blending -> INCLUDE/EXCLUDE LOD -> Measure -> Table Calcs):
    • (a) Primary Bookings.Segment = 'Enterprise' (Step 5): keeps West–Enterprise (120 | 600) and Central–Enterprise (360 | NULL) in blend/left join (West–Enterprise only in inner join).
    • (b) Secondary Quotas.Segment = 'Enterprise' (Steps 5–6): drops unmatched NULL links too, leaving only West–Enterprise (120 | 600) across blend, left join, and inner join.
    • (c) Context Bookings.Region = 'West' (Step 3): keeps the 3 West rows (120|600, 240|NULL, 60|450), and — unlike a Step-5 dimension filter — restricts Step-4 Top N and FIXED LOD (Level of Detail) expressions (formulas evaluated at fixed dimensions independent of the view) to West first.
    • (d) Measure SUM(Revenue) > 180 (Step 8): runs post-aggregation (> excludes 180), leaving West–Mid-Market (240 | NULL) and Central–Enterprise (360 | NULL) in blend/left join and an empty view in inner join.
    • (e) Data source filter on Quotas for ('Enterprise', 'Cloud') (Step 2): leaves the blend 100% unchanged (all 4 Quotas rows pass, and primary Bookings is untouched), whereas putting that filter on [Segment (Quotas)] inside a single left-joined data source drops NULL rows (B2, B3, B4) and collapses the left join into an inner join.
  • Two classic aggregation pitfalls: (1) Fan-out (row multiplication in many-to-many joins: joining on Region turns West's 3 × 2 rows into 840 | 3,150 vs. the blend's true 420 | 1,050; duplicating West–Enterprise in Quotas doubles joined Revenue to 240 while blended Revenue stays 120), and (2) View-dependent active links (removing Segment from a blended sheet unlinks Segment unless manually pinned, pairing East Cloud revenue 180 with East Enterprise quota 300, and collapsing multiple secondary strings into * via ATTR()).
  • 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 secondary COUNTD/MEDIAN/LODs, and omits secondary-only rows from table-calculation totals.

Common mistakes

  • Treating NULL quotas as 0 (or blindly wrapping in ZN()). Turning Central–Enterprise's NULL quota into 0 makes SUM(Revenue) - ZN(SUM(QuarterlyQuota)) report +360 above quota when Central actually had no quota assigned at all.
  • Expecting South–Cloud (700) to show up with NULL revenue in a blend. Because Bookings is primary and has no South rows, South–Cloud never 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 are NULL unless Null is explicitly included.
  • Expecting a standard dimension filter (Step 5) to scope Top N or FIXED LODs (Step 4). You must promote Region = '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 inside Quotas still sum to 1,200 in the secondary query unless deduplicated or aggregated with MIN/AVG.
  • Blending on high-cardinality keys like BookingID or CustomerID. 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 Bookings and Quotas as separate logical tables at their native grains and generates grain-aware SQL joins per worksheet, so West never suffers 3 × 2 fan-out (West stays 420 | 1,050, just like a blend). Unlike a blend, however, the matching condition (Region and Segment) is defined once in the data model rather than tied to which fields are on the sheet, so a Region-only sheet still respects the Segment mismatch and shows East as 180 | NULL instead of 180 | 300. Even better, Relationships are not stuck as left joins — bringing Quotas measures onto the sheet can surface unmatched quota rows (East–Enterprise 300 and South–Cloud 700, totaling 2,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 Quotas the 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 headers IFNULL([Bookings].[Region], [Quotas].[Region]) and IFNULL([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 both Bookings and Quotas onto that scaffold as secondaries, preserving the full 960 in revenue and 2,050 in 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 in ZN(...): Tableau already evaluates both 180 / NULL and 180 / 0 to NULL (avoiding divide-by-zero crashes), and keeping missing quotas as NULL prevents companion KPIs like AVG(QuarterlyQuota) or Revenue - QuarterlyQuota from treating unbudgeted regions (Central) as 0 quotas. Finally, verify that (Region, Segment) is unique in Quotas (or switch the denominator to MIN / AVG if repeated across sub-rows) so West–Enterprise computes 120 / 600 = 20% rather than 120 / 1,200 = 10%.

Follow-up questions

Similar questions

More TCS interview questions

All 2 TCS questions →