Complete the code to create a Card visual showing total sales.
TotalSales = SUM(Sales[[1]])The SUM function sums the values in the Amount column to calculate total sales.
Complete the code to create a Multi-row Card visual showing sales by product.
SalesByProduct = SUMMARIZE(Sales, Sales[Product], "Total", SUM(Sales[[1]]))
The SUMMARIZE function groups sales by product and sums the Amount column.
Fix the error in the DAX measure to display total sales in a Card visual.
TotalSales = SUM(Sales[[1]])The correct column name is Amount. Using SalesAmount or others causes errors.
Fill both blanks to create a Multi-row Card showing total sales by region.
SalesByRegion = SUMMARIZE(Sales, Sales[[1]], "TotalSales", SUM(Sales[[2]]))
The SUMMARIZE groups by Region and sums the Amount column for total sales.
Fill all three blanks to create a measure showing average sales per customer for a Card visual.
AvgSalesPerCustomer = DIVIDE(SUM(Sales[[1]]), DISTINCTCOUNT(Sales[[2]]), [3])
This measure sums Amount, divides by distinct customers counted by CustomerID, and returns 0 if division by zero occurs.