Complete the code to add a map visualization showing sales by country.
Map = SUMMARIZE(Sales, Sales[Country], "TotalSales", [1](Sales[Amount]))
We use SUM to add up sales amounts by country for the map.
Complete the code to filter map data to only show sales from 2023.
FilteredMap = FILTER(Sales, Sales[Year] = [1])We filter for the year 2023 to show only that year's sales on the map.
Fix the error in the DAX measure to calculate total sales for the map.
TotalSales = CALCULATE([1](Sales[Amount]), ALL(Sales[Region]))The SUM function correctly totals the sales amount ignoring region filters.
Fill both blanks to create a measure that calculates sales growth percentage for the map.
SalesGrowth = DIVIDE(SUM(Sales[Amount]) - SUM(Sales[Amount])[1] 1, SUM(Sales[Amount])[2] 1)
We subtract last year's sales ({{BLANK_1}}) and divide by last year's sales ({{BLANK_2}}) to get growth.
Fill all three blanks to create a map measure that shows average sales per city filtered by region.
AvgSalesCity = CALCULATE([1](Sales[Amount]), FILTER(Sales, Sales[Region] [2] [3]))
We calculate the AVERAGE sales amount, filtering where region equals "West".