- Information
- AI Chat
Was this document helpful?
DAX Workshop Code Examples v2
Course: Research Development And Data Analysis (EDUC 555)
26 Documents
Students shared 26 documents in this course
University: Capital University, Columbus Ohio
Was this document helpful?
-- Full Name Column (Column on Customer Table)
Full Name = 'Customer'[First Name] & " " & 'Customer'[Last Name]
-- Age Breakdown Calculation (Column on Customer Table)
Age Breakdown =
IF('Customer'[Age] >= 55, "55+",
IF('Customer'[Age] >= 45, "45-54",
IF('Customer'[Age] >= 35, "35-44",
"18-34" ) ) )
-- Month Year
Month Year = FORMAT('Date'[Date], "mm-yyyy")
-- Temperature Key (Column on Internet Sales Table)
Temperature Key =
RELATED('Sales Territory'[Sales Territory Region]) & RELATED('Date'[Month Number Of Year])
-- Total Transactions (Column on Sales Territory table)
Total Transactions = COUNTROWS(RELATEDTABLE('Internet Sales'))
---
Last Purshcase Date =
MAXX(
RELATEDTABLE('Internet Sales'),
'Internet Sales'[Order Date])
---
-- Region Volume
Region Volume =