0
0
Tableaubi_tool~20 mins

Dynamic dimension swap in Tableau - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Dynamic Dimension Swap Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
dax_lod_result
intermediate
2:00remaining
Calculate sales based on dynamic dimension selection

You have a parameter called Dimension Selector with values: 'Category', 'Region', and 'Segment'. You want to create a calculated field that returns total sales grouped by the selected dimension.

Which of the following Tableau calculated fields correctly implements this dynamic dimension swap?

AIF [Dimension Selector] = 'Category' THEN ATTR([Category]) ELSEIF [Dimension Selector] = 'Region' THEN ATTR([Region]) ELSE ATTR([Segment]) END
BCASE [Dimension Selector] WHEN 'Category' THEN ATTR([Category]) WHEN 'Region' THEN ATTR([Region]) WHEN 'Segment' THEN ATTR([Segment]) END
CIF [Dimension Selector] = 'Category' THEN SUM([Sales]) ELSEIF [Dimension Selector] = 'Region' THEN SUM([Sales]) ELSE SUM([Sales]) END
DSUM(CASE [Dimension Selector] WHEN 'Category' THEN [Category] WHEN 'Region' THEN [Region] WHEN 'Segment' THEN [Segment] END)
Attempts:
2 left
💡 Hint

Think about what the dynamic dimension swap needs to return: the dimension value, not the aggregated sales.

visualization
intermediate
1:30remaining
Best visualization for dynamic dimension swap

You created a dynamic dimension swap parameter to switch between 'Product Category', 'Region', and 'Customer Segment'. Which visualization type best supports clear comparison across these dimensions when swapped?

ALine chart showing sales trend over time without dimension swap
BScatter plot with sales on x-axis and profit on y-axis
CPie chart showing sales distribution for all dimensions simultaneously
DStacked bar chart with dynamic dimension on the x-axis and sales on the y-axis
Attempts:
2 left
💡 Hint

Think about how to compare categories clearly when the dimension changes.

data_modeling
advanced
2:30remaining
Data model considerations for dynamic dimension swap

To implement a dynamic dimension swap in Tableau, which data model design best supports flexible dimension switching without duplicating data?

AA flat table with all dimensions and measures in one table
BA star schema with separate dimension tables for each dimension and a fact table for sales
CMultiple fact tables each joined to a single dimension table
DA snowflake schema with normalized dimension tables linked to the fact table
Attempts:
2 left
💡 Hint

Consider how Tableau handles joins and dimension attributes for dynamic swapping.

🎯 Scenario
advanced
2:30remaining
Troubleshooting dynamic dimension swap showing incorrect data

You implemented a dynamic dimension swap using a parameter and calculated field. However, when switching dimensions, some categories show NULL values or incorrect aggregation. What is the most likely cause?

AThe visualization type does not support dynamic parameters
BThe data source is missing sales data for some categories
CThe calculated field uses ATTR() which returns NULL when multiple values exist for the dimension in the current context
DThe parameter values do not match the dimension names exactly, causing mismatch
Attempts:
2 left
💡 Hint

Think about how ATTR() behaves when multiple dimension values exist in the view.

🧠 Conceptual
expert
1:30remaining
Why use dynamic dimension swap in dashboards?

What is the primary benefit of implementing a dynamic dimension swap in a Tableau dashboard?

AIt allows users to switch between different dimensions on the same visualization without creating multiple sheets
BIt improves data refresh speed by reducing query complexity
CIt automatically predicts the best dimension to display based on user behavior
DIt enforces strict data security by limiting dimension access
Attempts:
2 left
💡 Hint

Think about user interactivity and dashboard design efficiency.