Complete the code to create a dual-axis chart by dragging the correct option to the blank.
SUM(Sales) [1] AVG(Profit)In Tableau, to create a dual-axis chart, you place two measures like SUM(Sales) and AVG(Profit) on the Rows or Columns shelf (represented here by a double pipe '||'), then right-click one axis and select Dual Axis. This allows combining bar and line charts.
Complete the step to synchronize axes by dragging the correct option to the blank.
Right-click on the second axis and select '[1]' to align scales.
To make sure both axes use the same scale in a combo chart, you right-click the second axis and choose 'Synchronize Axis'.
Fix the error in the calculation to combine Sales and Profit for the combo chart.
IF SUM(Sales) > 1000 THEN [1] ELSE SUM(Profit) END
The calculation must return the same type of aggregation for both branches. Using SUM(Sales) ensures consistency.
Fill both blanks to set the mark types for the combo chart.
Drag [1] to Rows shelf and [2] to Rows shelf, then right-click second axis and select Dual Axis.
Combo charts typically use SUM(Sales) as bars and AVG(Profit) as lines to show different measures together.
Fill all three blanks to complete the steps for formatting the combo chart axes.
Right-click [1] axis, select [2], then check [3] to match scales.
To format combo chart axes, right-click the right axis, select 'Synchronize Axis', and ensure 'Show Header' is checked to display the axis.