DAX Measures
DAX Measures
1. Total Sales:
Total Sales = SUM(Sales[TotalSales])
2. Total Quantity:
Total Quantity = SUM(Sales[Quantity])
3. Average Price:
Average Price = AVERAGE(Sales[TotalSales] / Sales[Quantity])
4. Sales by Store:
Sales by Store = CALCULATE([Total Sales], ALLEXCEPT(Stores, Stores[StoreName]))
7. YoY Growth %:
YoY Growth % = DIVIDE([Total Sales] - [Previous Year Sales], [Previous Year Sales])
9. Running Total:
Running Total = CALCULATE([Total Sales], FILTER(ALLSELECTED('Date'[Date]),
'Date'[Date] <= MAX('Date'[Date])))