Compare Tableau blending, joins, and filters
Tableau Data Integration: Joins, Blends, Filters, and Order of Operations
This exercise explores various methods of integrating and filtering data within Tableau, focusing on the distinctions between physical joins, data blending, and the impact of different filter types.
Data Sources
YouYou will work with two data sources:
-
Primary (Orders)
- Columns: OrderID, State, Category, Sales
- Rows:
- (O1, CA, Furniture, 100)
- (O2, CA, Office Supplies, 200)
- (O3, NY, Technology, 150)
- (O4, TX, Furniture, 300)
- (O5, CA, Technology, 50)
-
Secondary (Targets)
- Columns: State, Category, MonthlyTarget
- Rows: A) (CA, Furniture, 500) B) (CA, Technology, 400) C) (NY, Furniture, 250) D) (FL, Technology, 600)
Tasks
-
Physical Joins
- Perform a physical Inner Join between
OrdersandTargetsonStateANDCategory.- Identify which rows remain in the joined dataset.
- Calculate
SUM(Sales)andSUM(MonthlyTarget)byStateandCategory.
- Perform a physical Left Join (with
Ordersas the left table) betweenOrdersandTargetsonStateANDCategory.- Identify which rows remain in the joined dataset.
- Calculate
SUM(Sales)andSUM(MonthlyTarget)byStateandCategory.
- Perform a physical Inner Join between
-
Data Blending
- Configure data blending using
Ordersas the Primary data source andTargetsas the Secondary data source. Link the sources onStateandCategory. - With
StateandCategoryon Rows, andSUM(Sales)andSUM(MonthlyTarget)on Columns, explain precisely how Tableau computes the resulting view. - Specify how unmatched members (e.g., NY–Technology; TX–Furniture; FL–Technology) appear in the view, indicating whether their corresponding sales/targets show as
NULLorzero. Provide a detailed explanation for this behavior.
- Configure data blending using
-
Filter Impact and Order of Operations
- Describe how the results from the blending exercise (Task 2) would change under each of the following filter scenarios. For each, explain why the change occurs, referencing Tableau’s order of operations:
- (a) A Dimension filter applied to
Category = 'Furniture'from theOrders(primary) data source. - (b) A Dimension filter applied to
Category = 'Furniture'from theTargets(secondary) data source. - (c) A Context filter applied to
State = 'CA'on theOrdersdata source. - (d) A Measure filter applied to
SUM(Sales) > 150. - (e) A Data source filter applied to
Targetskeeping onlyCategory IN ('Furniture', 'Technology').
- (a) A Dimension filter applied to
- Describe how the results from the blending exercise (Task 2) would change under each of the following filter scenarios. For each, explain why the change occurs, referencing Tableau’s order of operations:
-
Blending vs. Joining Pitfalls
- Describe two common pitfalls where data blending and physical joining can yield different aggregate results due to differences in level of detail or the presence of many-to-many relationships (e.g., duplicate
State–Categoryrows inTargets). - Provide a concrete example based on the given
OrdersandTargetsdata to illustrate one of these pitfalls.
- Describe two common pitfalls where data blending and physical joining can yield different aggregate results due to differences in level of detail or the presence of many-to-many relationships (e.g., duplicate
-
When to Prefer Blending
- Discuss scenarios where you would prefer using data blending over physical joining in Tableau. Your answer should address the following considerations:
- Cross-database analysis capabilities.
- Required granularity of data.
- Behavior of linking fields.
- Performance and caching implications.
- Limitations on calculations (e.g.,
FIXEDLevel of Detail expressions, table calculations) when using secondary sources.
- Discuss scenarios where you would prefer using data blending over physical joining in Tableau. Your answer should address the following considerations:
AI interview prep
Core dilemma
The central engineering conflict is understanding and managing the implications of Tableau's distinct data integration (joins vs. blends) and filtering mechanisms on data granularity, aggregation, and the order of operations, ensuring data integrity and consistent analytical results across disparate sources.
3 tradeoffs and 3 stress tests locked
Interview prep
Unlock the interviewer X-Ray rubric, tradeoff matrix, stress tests, clarifying questions, and key concepts.
Compare Tableau blending, joins, and filters
Tableau Data Integration: Joins, Blends, Filters, and Order of Operations
This exercise explores various methods of integrating and filtering data within Tableau, focusing on the distinctions between physical joins, data blending, and the impact of different filter types.
Data Sources
YouYou will work with two data sources:
-
Primary (Orders)
- Columns: OrderID, State, Category, Sales
- Rows:
- (O1, CA, Furniture, 100)
- (O2, CA, Office Supplies, 200)
- (O3, NY, Technology, 150)
- (O4, TX, Furniture, 300)
- (O5, CA, Technology, 50)
-
Secondary (Targets)
- Columns: State, Category, MonthlyTarget
- Rows: A) (CA, Furniture, 500) B) (CA, Technology, 400) C) (NY, Furniture, 250) D) (FL, Technology, 600)
Tasks
-
Physical Joins
- Perform a physical Inner Join between
OrdersandTargetsonStateANDCategory.- Identify which rows remain in the joined dataset.
- Calculate
SUM(Sales)andSUM(MonthlyTarget)byStateandCategory.
- Perform a physical Left Join (with
Ordersas the left table) betweenOrdersandTargetsonStateANDCategory.- Identify which rows remain in the joined dataset.
- Calculate
SUM(Sales)andSUM(MonthlyTarget)byStateandCategory.
- Perform a physical Inner Join between
-
Data Blending
- Configure data blending using
Ordersas the Primary data source andTargetsas the Secondary data source. Link the sources onStateandCategory. - With
StateandCategoryon Rows, andSUM(Sales)andSUM(MonthlyTarget)on Columns, explain precisely how Tableau computes the resulting view. - Specify how unmatched members (e.g., NY–Technology; TX–Furniture; FL–Technology) appear in the view, indicating whether their corresponding sales/targets show as
NULLorzero. Provide a detailed explanation for this behavior.
- Configure data blending using
-
Filter Impact and Order of Operations
- Describe how the results from the blending exercise (Task 2) would change under each of the following filter scenarios. For each, explain why the change occurs, referencing Tableau’s order of operations:
- (a) A Dimension filter applied to
Category = 'Furniture'from theOrders(primary) data source. - (b) A Dimension filter applied to
Category = 'Furniture'from theTargets(secondary) data source. - (c) A Context filter applied to
State = 'CA'on theOrdersdata source. - (d) A Measure filter applied to
SUM(Sales) > 150. - (e) A Data source filter applied to
Targetskeeping onlyCategory IN ('Furniture', 'Technology').
- (a) A Dimension filter applied to
- Describe how the results from the blending exercise (Task 2) would change under each of the following filter scenarios. For each, explain why the change occurs, referencing Tableau’s order of operations:
-
Blending vs. Joining Pitfalls
- Describe two common pitfalls where data blending and physical joining can yield different aggregate results due to differences in level of detail or the presence of many-to-many relationships (e.g., duplicate
State–Categoryrows inTargets). - Provide a concrete example based on the given
OrdersandTargetsdata to illustrate one of these pitfalls.
- Describe two common pitfalls where data blending and physical joining can yield different aggregate results due to differences in level of detail or the presence of many-to-many relationships (e.g., duplicate
-
When to Prefer Blending
- Discuss scenarios where you would prefer using data blending over physical joining in Tableau. Your answer should address the following considerations:
- Cross-database analysis capabilities.
- Required granularity of data.
- Behavior of linking fields.
- Performance and caching implications.
- Limitations on calculations (e.g.,
FIXEDLevel of Detail expressions, table calculations) when using secondary sources.
- Discuss scenarios where you would prefer using data blending over physical joining in Tableau. Your answer should address the following considerations: