Complete the code to calculate the total sales amount using SUMX.
Total Sales = SUMX(Sales, Sales[Quantity] [1] Sales[Price])The SUMX function iterates over the Sales table and multiplies Quantity by Price for each row, then sums the results.
Complete the code to calculate total profit by iterating over the Sales table.
Total Profit = SUMX(Sales, Sales[Quantity] * (Sales[Price] [1] Sales[Cost]))Profit per row is Price minus Cost, multiplied by Quantity. SUMX sums these profits.
Fix the error in the code to correctly calculate total discount amount.
Total Discount = SUMX(Sales, Sales[Quantity] [1] Sales[Discount])To get total discount, multiply Quantity by Discount per unit, then sum with SUMX.
Fill both blanks to calculate total revenue after discount.
Total Revenue = SUMX(Sales, Sales[Quantity] [1] (Sales[Price] [2] Sales[Discount]))
Revenue per row is Quantity times (Price minus Discount). SUMX sums these values.
Fill all three blanks to calculate total tax amount on sales.
Total Tax = SUMX(Sales, Sales[Quantity] [1] Sales[Price] [2] Sales[TaxRate] [3] 0.01)
Tax per row is Quantity times Price times TaxRate times 0.01 (to convert percent). SUMX sums these taxes.