0% found this document useful (0 votes)
13 views1 page

DAX Measures

The document outlines various DAX measures for analyzing sales data, including calculations for total sales, total quantity, average price, and year-to-date sales. It also includes measures for comparing sales across different time periods and categories, such as previous year sales and product size categorization. These measures are designed to facilitate comprehensive sales analysis in a data model.

Uploaded by

krishnakse04
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views1 page

DAX Measures

The document outlines various DAX measures for analyzing sales data, including calculations for total sales, total quantity, average price, and year-to-date sales. It also includes measures for comparing sales across different time periods and categories, such as previous year sales and product size categorization. These measures are designed to facilitate comprehensive sales analysis in a data model.

Uploaded by

krishnakse04
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

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]))

5. Year-to-Date (YTD) Sales:


YTD Sales = TOTALYTD([Total Sales], 'Date'[Date])

6. Previous Year Sales:


Previous Year Sales = CALCULATE([Total Sales], SAMEPERIODLASTYEAR('Date'[Date]))

7. YoY Growth %:
YoY Growth % = DIVIDE([Total Sales] - [Previous Year Sales], [Previous Year Sales])

8. Top Product Sales:


Top Product Sales = CALCULATE([Total Sales], TOPN(1, Products, [Total Sales],
DESC))

9. Running Total:
Running Total = CALCULATE([Total Sales], FILTER(ALLSELECTED('Date'[Date]),
'Date'[Date] <= MAX('Date'[Date])))

10. Product Size Category (Calculated Column):


Product Size Category = IF(Products[Price] > 50, "Premium", "Standard")

You might also like