Complete the code to create a simple table visual showing Sales Amount.
Table = SUMMARIZE(Sales, Sales[Product], "TotalSales", [1])
Use SUM to calculate the total sales amount for each product in the table.
Complete the code to add a matrix visual grouping by Region and Product.
Matrix = SUMMARIZE(Sales, Sales[Region], Sales[Product], "TotalSales", [1])
SUM aggregates sales amount by Region and Product for the matrix layout.
Fix the error in the measure to calculate total sales for the matrix.
Total Sales = CALCULATE([1], ALL(Sales[Product]))CALCULATE needs a proper aggregation like SUM to compute total sales ignoring product filter.
Fill both blanks to create a matrix showing sales by Year and Category with total sales.
Matrix = SUMMARIZE(Sales, Sales[[1]], Sales[[2]], "TotalSales", SUM(Sales[SalesAmount]))
Year and Category are common matrix row and column groups for sales analysis.
Fill all three blanks to create a measure that calculates average sales per product in a matrix.
Avg Sales = DIVIDE(SUM(Sales[[1]]), COUNT(Sales[[2]]), [3])
Sum sales amount divided by count of products, with 0 as alternate result if division by zero.