Bird
Raised Fist0
Tableaubi_tool~20 mins

Blending data sources in Tableau - Practice Problems & Coding Challenges

Choose your learning style10 modes available

Start learning this pattern below

Jump into concepts and practice - no test required

or
Recommended
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
Challenge - 5 Problems
🎖️
Blending Data Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Primary and Secondary Data Sources in Tableau

In Tableau, when blending data from two sources, which statement correctly describes the role of the primary data source?

AThe primary data source is only used to join tables before blending.
BThe primary data source defines the view's structure and drives the filters and calculations.
CThe primary data source is ignored if the secondary source has more records.
DThe primary data source automatically duplicates all fields from the secondary source.
Attempts:
2 left
💡 Hint

Think about which data source controls the main visualization layout.

❓ dax_lod_result
intermediate
2:00remaining
Result of a Tableau Data Blend with Different Granularity

Suppose you blend two data sources in Tableau: Source A has daily sales data, and Source B has monthly targets. If you create a view by day using Source A and blend Source B on month, what will happen to the target values?

AThe monthly target value will be duplicated for each day in that month.
BThe target value will be averaged across all days automatically.
CThe target value will be null for all days except the first day of the month.
DThe target value will be summed across all months.
Attempts:
2 left
💡 Hint

Consider how Tableau matches data when blending at different levels of detail.

❓ visualization
advanced
3:00remaining
Choosing the Best Visualization for Blended Data

You have blended sales data from two sources: one with product details and another with regional targets. You want to show actual sales vs. target by region and product category. Which visualization best communicates this comparison clearly?

AA scatter plot with sales on X-axis and product category on Y-axis.
BA pie chart showing total sales by product category only.
CA line chart showing sales trends over time without target data.
DA stacked bar chart showing sales and target side by side for each region and category.
Attempts:
2 left
💡 Hint

Think about how to compare two related measures across categories and regions.

🔧 Formula Fix
advanced
2:30remaining
Troubleshooting Null Values in Blended Data

After blending two data sources in Tableau on the field 'Customer ID', you notice many null values in the secondary source fields. What is the most likely cause?

AThe 'Customer ID' field has mismatched data types or formatting between the two sources.
BThe primary data source has missing records for some customers.
CTableau does not support blending on fields named 'Customer ID'.
DThe secondary source is set as primary by mistake.
Attempts:
2 left
💡 Hint

Check how the linking field matches between sources.

🎯 Scenario
expert
4:00remaining
Designing a Data Blend for Performance and Accuracy

You need to blend a large transactional sales dataset with a smaller customer demographic dataset in Tableau. The sales data updates daily, and the demographic data updates monthly. How should you design the blend to optimize performance and ensure accurate reporting?

AUse the demographic data as primary source and blend sales data, filtering sales to last month only.
BJoin both datasets outside Tableau before import to avoid blending.
CUse the sales data as primary source and blend the demographic data on Customer ID, filtering demographic data to latest month only.
DBlend both sources without filters and aggregate sales data at monthly level.
Attempts:
2 left
💡 Hint

Consider update frequency and data size when choosing primary source and filters.

Practice

(1/5)
1. What is the main purpose of blending data sources in Tableau?
easy
A. To create a single table by merging all data sources permanently
B. To combine data from different sources using common fields without merging tables
C. To replace the primary data source with a secondary one
D. To export data from Tableau to external databases

Solution

  1. Step 1: Understand blending concept

    Blending connects data from different sources using common fields without merging them permanently.
  2. Step 2: Compare options

    To combine data from different sources using common fields without merging tables correctly describes blending. Options A, C, and D describe other unrelated actions.
  3. Final Answer:

    To combine data from different sources using common fields without merging tables -> Option B
  4. Quick Check:

    Blending = combine without merging [OK]
Hint: Blending links data without merging tables [OK]
Common Mistakes:
  • Confusing blending with joining or merging tables
  • Thinking blending replaces the primary source
  • Assuming blending exports data
2. Which of the following is the correct way to identify the linking field in Tableau data blending?
easy
A. The field with a red cross in the primary data source
B. The field with a blue checkmark in the secondary data source
C. The field with a green plus sign in the primary data source
D. The field with an orange chain link icon in the secondary data source

Solution

  1. Step 1: Recognize linking field icon

    In Tableau, linking fields in the secondary data source show an orange chain link icon.
  2. Step 2: Match options to icons

    The field with an orange chain link icon in the secondary data source correctly identifies the orange chain link icon as the linking field. Other options describe incorrect icons or colors.
  3. Final Answer:

    The field with an orange chain link icon in the secondary data source -> Option D
  4. Quick Check:

    Linking field = orange chain link icon [OK]
Hint: Look for orange chain link icon for linking fields [OK]
Common Mistakes:
  • Confusing linking field icon with checkmarks or plus signs
  • Looking for icons in the primary instead of secondary source
  • Ignoring icon colors
3. Given two data sources: Primary with fields OrderID, Sales and Secondary with fields OrderID, CustomerName. If you blend on OrderID and create a view showing Sales and CustomerName, what will happen if an OrderID exists only in the secondary source?
medium
A. The view will exclude that OrderID because it is missing in the primary source
B. The view will show Sales as null and CustomerName for that OrderID
C. The view will show Sales and CustomerName as null
D. The view will cause an error and not display

Solution

  1. Step 1: Understand primary source control

    In blending, the primary source controls the rows shown. If an OrderID is missing in primary, it won't appear.
  2. Step 2: Analyze missing OrderID in primary

    Since the OrderID exists only in secondary, it will be excluded from the view.
  3. Final Answer:

    The view will exclude that OrderID because it is missing in the primary source -> Option A
  4. Quick Check:

    Primary source controls rows = missing keys excluded [OK]
Hint: Primary source controls rows shown in blending [OK]
Common Mistakes:
  • Expecting secondary-only keys to appear in the view
  • Thinking null values appear for missing primary keys
  • Assuming blending causes errors on missing keys
4. You blended two data sources on CustomerID. However, the secondary data source fields show Null values in your view. What is the most likely cause?
medium
A. You forgot to refresh the data sources
B. The primary data source is missing the CustomerID field
C. The linking field CustomerID has mismatched data types between sources
D. The secondary data source is set as primary by mistake

Solution

  1. Step 1: Check linking field compatibility

    Blending requires linking fields to have matching data types to join correctly.
  2. Step 2: Identify cause of nulls

    If data types differ, Tableau cannot match keys, causing nulls in secondary fields.
  3. Final Answer:

    The linking field CustomerID has mismatched data types between sources -> Option C
  4. Quick Check:

    Matching data types needed for linking fields [OK]
Hint: Check data types of linking fields if nulls appear [OK]
Common Mistakes:
  • Assuming missing fields cause nulls instead of mismatched types
  • Confusing primary and secondary source roles
  • Ignoring need to refresh data
5. You have two data sources: SalesData (Primary) with OrderID, SalesAmount and CustomerData (Secondary) with CustomerID, OrderID, Region. You want to create a view showing total sales by region. How should you blend and aggregate the data correctly?
hard
A. Blend on OrderID, use Region from secondary, and create a calculated field summing SalesAmount grouped by Region
B. Blend on CustomerID, use Region from secondary, and sum SalesAmount without grouping
C. Join the two sources on OrderID instead of blending, then sum SalesAmount by Region
D. Blend on Region, then sum SalesAmount grouped by OrderID

Solution

  1. Step 1: Identify correct linking field

    OrderID exists in both sources and links sales to customer region.
  2. Step 2: Blend on OrderID and aggregate

    Blend on OrderID, use Region from secondary, then sum SalesAmount grouped by Region for total sales by region.
  3. Final Answer:

    Blend on OrderID, use Region from secondary, and create a calculated field summing SalesAmount grouped by Region -> Option A
  4. Quick Check:

    Blend on OrderID + sum Sales by Region [OK]
Hint: Blend on common key, aggregate sales by region [OK]
Common Mistakes:
  • Blending on wrong field like CustomerID or Region
  • Not grouping sales by region
  • Confusing blending with joining