Complete the code to create a calculated field that sums sales.
SUM([1])The SUM function adds all values in the 'Sales' field, which is common in data analysis.
Complete the code to calculate average profit per order.
AVG([1])AVG calculates the average of the 'Profit' field, useful to understand profit per order.
Fix the error in the calculation to find profit ratio.
SUM([1]) / SUM(Sales)The profit ratio is total profit divided by total sales, so SUM(Profit) is correct.
Fill both blanks to create a calculated field for profit margin percentage.
(SUM([1]) / SUM([2])) * 100
Profit margin is profit divided by sales, multiplied by 100 to get a percentage.
Fill all three blanks to create a calculated field that counts orders with profit greater than zero.
COUNT(IF [1] > [2] THEN [3] END)
This counts orders where profit is greater than zero by checking 'Profit > 0' and counting 'Order ID'.