Complete the code to calculate the sum of Sales and Profit.
SUM([Sales]) [1] SUM([Profit])In Tableau, the plus sign (+) is used to add two measures together.
Complete the code to calculate the average profit margin as Profit divided by Sales.
SUM([Profit]) [1] SUM([Sales])The division operator (/) divides Profit by Sales to get the profit margin.
Fix the error in the calculation to find the difference between Sales and Discount.
SUM([Sales]) [1] SUM([Discount])The minus sign (-) subtracts Discount from Sales to find the difference.
Fill both blanks to calculate the total revenue after applying a 10% tax on Sales.
SUM([Sales]) [1] (SUM([Sales]) [2] 0.10)
First, calculate 10% of Sales by multiplying by 0.10, then add it to Sales to get total revenue after tax.
Fill all three blanks to calculate the profit ratio as Profit divided by (Sales minus Discount).
SUM([Profit]) [1] (SUM([Sales]) [2] SUM([Discount]) [3] 1)
Profit ratio is Profit divided by (Sales minus Discount times 1). The multiplication by 1 keeps the expression valid.