Complete the code to calculate the percent of total sales for each category.
SUM([Sales]) / [1]To calculate percent of total, divide the sum of sales by the total sum of sales across all categories using TOTAL(SUM([Sales])).
Complete the code to create a calculated field that shows percent of total profit by region.
SUM([Profit]) / [1]WINDOW_SUM(SUM([Profit])) calculates the total profit over the window, which is needed to compute percent of total.
Fix the error in the calculated field to correctly compute percent of total sales by segment.
SUM([Sales]) / [1]WINDOW_SUM(SUM([Sales])) correctly computes the total sales over the window, enabling percent of total calculation.
Fill both blanks to calculate percent of total profit by category and region.
SUM([Profit]) / [1]([2])
Use WINDOW_SUM(SUM([Profit])) to get total profit in the window and TOTAL to aggregate correctly for percent of total.
Fill all three blanks to create a calculated field for percent of total sales by category with table calculation.
SUM([Sales]) / [1]([2](SUM([Sales])), [3])
Use TOTAL(WINDOW_SUM(SUM([Sales])), ALL) to compute total sales ignoring filters for percent of total.