Complete the code to create a pie chart by dragging the correct mark type.
Drag the [1] mark type to create a pie chart in Tableau.
The Pie mark type is used to create pie charts in Tableau.
Complete the code to add the dimension that defines pie slices.
Drag the [1] field to the Color shelf to define pie slices.Dimensions are used to segment data, so dragging a dimension to Color creates pie slices.
Fix the error in the calculation to show percentage labels on pie slices.
Create a calculated field: SUM([Sales]) / [1]Using TOTAL(SUM([Sales])) calculates the total sales for the whole pie, allowing percentage calculation.
Fill both blanks to complete the steps to add labels showing percentage and category.
Drag [1] to Label shelf and set label to show [2].
Drag the calculated field showing percentage to Label, and set label to show percentage values.
Fill all three blanks to create a pie chart showing sales by category with percentage labels.
1. Drag [1] to Color shelf. 2. Drag [2] to Angle shelf. 3. Create a calculated field [3] = SUM([Sales]) / TOTAL(SUM([Sales])) for labels.
Category defines slices (Color), Sales defines slice size (Angle), and Sales Percentage is the calculated field for labels.