Complete the code to insert a field value into the tooltip.
<Tooltip>
<p>Sales: [1]</p>
</Tooltip>In Tableau, to show the sum of Sales in a tooltip, you use SUM([Sales]).
Complete the code to add a calculated field to the tooltip showing profit ratio.
<Tooltip>
<p>Profit Ratio: [1]</p>
</Tooltip>The profit ratio is calculated as total profit divided by total sales, so use SUM([Profit]) / SUM([Sales]).
Fix the error in the tooltip calculation to show average discount percentage.
<Tooltip>
<p>Avg Discount: [1]%</p>
</Tooltip>To show average discount as a percentage, multiply the average discount by 100 using AVG([Discount]) * 100.
Fill both blanks to create a tooltip that shows sales and profit with currency formatting.
<Tooltip> <p>Sales: [1]</p> <p>Profit: [2]</p> </Tooltip>
Use FORMAT to display sums with currency symbols and commas: FORMAT(SUM([Sales]), '$#,##0') and FORMAT(SUM([Profit]), '$#,##0').
Fill all three blanks to create a tooltip showing category, total sales, and average profit margin.
<Tooltip> <p>Category: [1]</p> <p>Total Sales: [2]</p> <p>Avg Profit Margin: [3]%</p> </Tooltip>
Show the category field as is, total sales as sum, and average profit margin as average: [Category], SUM([Sales]), AVG([Profit Margin]).