Database Reference
In-Depth Information
Figure 5-7. Home run bar chart with team total added
To answer my earlier question, I can now see that Robinson Cano hit 33 home runs, and that
the team hit 245 home runs overall. How do I get Tableau to do the percent of total calcula-
tion for me?
To label each player bar as a percent of total rather than an absolute amount of home runs,
hover over the green
SUM(HR)
pill in the Marks card (the one that's being used to generate
the labels) and click the small down arrow that appears within the pill. Choose
Quick Table
Calculation
→
Percent of Total
, as shown in
Figure 5-8
.