Dax Function
Dax Function
CALCULATED CALCULATED
COLUMNS MEASURES
IMPORTANT
CONCEPTS
ROW FILTER
CONTEXT CONTEXT
DAX-Data Analysis eXpression
.
Calculated Columns
Measures
A calculated column is just another column in a
• A measure is a formula for the values area of Power Pivot
table that you add to an existing Power Pivot
table.
table. Instead of pasting or importing values in
• A measure can be implicit or explicit
the column, you create a DAX formula that
Measures vs. Calculated Fields
defines the column values.
They both refer to the same thing in the context of Power
Evaluated in Row Context
Pivot. Up to Excel 2010 Power Pivot versions, Microsoft used
Measure as the official term.
For example, you can create one calculated
Starting Excel 2013, Measures became Calculated Fields.
column to extract Year from the existing
column – Date, with the DAX formula
=YEAR ([Date])
YEAR is a DAX function and Date is an existing Column labels
column in the table
Examples
• [Amount] = [Qty]*[Price]
• [Full Name]= [First name] & “ “& [Last name] Row Labels Values Area