The vocabulary of DAX
Glossary
The technical words and the functions of DAX, each in one sentence and one example.
31 words
01Data and model
Filter direction
The direction in which a relationship passes a filter. By default, it goes from the “1” side to the “*” side.
CROSSFILTER( Sales[Customer ID], Customers[Customer ID], BOTH )Written inside CALCULATE, CROSSFILTER also lets the filter go from Sales to Customers, for the time of the calculation.
See the lesson: Filter directionForeign key
In a table, the column that points to the primary key of another table, like Sales[Customer ID]. It can repeat.
In Sales, C001 appears twice, once for each sale to Orvane. Customer ID is a foreign key there.
See the lesson: Foreign keyGrain
The level of detail of the data, in a table or a visual. People also say granularity. One row per city is less detailed than one row per city and per category.
A visual by Customers[City] has 3 rows, not counting the total. By Customers[City] and Products[Category], it has 9.
See the lesson: GrainInactive relationship
A relationship in the model that passes no filter, except when USERELATIONSHIP turns it on for one calculation. Power BI draws it as a dotted line. Between two tables, only one relationship can be active.
USERELATIONSHIP( Sales[Delivery Date], Calendar[Date] )Written inside CALCULATE, USERELATIONSHIP turns on the delivery date relationship for the time of the calculation.
See the lesson: Inactive relationshipMany-to-many relationship
A relationship between two columns where neither has unique values. Power BI marks it with a star on each side.
Velmo repeats in Products[Brand] as well as in Targets[Brand]. The relationship that links them is many-to-many.
See the lesson: Many-to-many relationshipPhysical table
A table loaded into Power BI from an Excel file, a database or another source. It is kept until the next data refresh.
SalesThe Sales, Customers and Products tables of the lessons are physical tables.
See the lesson: Physical tablePrimary key
The column that identifies each row of a table with no ambiguity, with no duplicates and no blanks, like Customers[Customer ID].
In Customers, C001 appears only once. Customer ID is the primary key of Customers.
See the lesson: Primary keyRelationship
The link between two tables through a shared column, like Sales[Product Code] and Products[Product Code]. By default, a filter placed on Products flows down to Sales, not the other way around. That is why a slicer on a column of Sales does not, on its own, filter the Products table.
With a Products[Brand] slicer set to Velmo, 5 rows remain in Sales, those of Rano and Lino, for 750,000.
See the lesson: RelationshipVertiPaq
The engine that, in Import mode, keeps the model’s tables in memory, stored by column and compressed.
The Sales[Product Code] column keeps 4 codes in a dictionary, and 12 small numbers, one per row.
See the lesson: VertiPaqVirtual relationship
A filter passed from one table to another, with no relationship in the model, for the time of a calculation. TREATAS creates one.
TREATAS( VALUES( Products[Brand] ), Targets[Brand] )The brands visible in Products filter Targets, as if a relationship existed.
See the lesson: Virtual relationship
03Context and filters
Context transition
When CALCULATE turns the current row into filters. It also happens when you call a measure in a row context, because DAX places an invisible CALCULATE around the measure.
SUMX( VALUES( Customers[City] ), [Revenue] )With no filter, each city becomes a filter. [Revenue] returns 900,000, 500,000 and 300,000, and SUMX adds them up, 1,700,000.
See the lesson: Context transitionFilter context
All the filters active when Power BI calculates a measure: slicers, the Filters pane, other visuals on the page, the rows and columns of the visual, and the ones CALCULATE adds, replaces or removes.
On the New York row of a visual, with the slicer set to 2025: Customers[City] = "New York" and YEAR( Sales[Date] ) = 2025.
See the lesson: Filter contextRow context
The current row when DAX goes through a table row by row, in a calculated column or an iterator. On its own, it filters nothing.
SUMX( Sales, Sales[Qty] * Sales[Price] )For each row, Sales[Qty] and Sales[Price] refer to the values of the current row.
See the lesson: Row contextSlicer
A visual that, by default, filters the other visuals on the page by the values you pick.
With a slicer on the year of Sales[Date] set to 2025, the other visuals on the page see only the 7 rows of 2025.
See the lesson: Slicer
02Writing a formula
Argument
The general word for each piece you give a function, inside its parentheses: an expression, a column, a table, a condition, a name or a keyword. Several arguments are separated by commas.
DIVIDE( [Revenue], 3 )[Revenue] and 3 are the two arguments. DIVIDE accepts an optional third one, which sets the result when you divide by zero.
See the lesson: ArgumentColumn reference
You refer to a column by the name of its table, then the name of the column in square brackets.
Customers[City]The City column of the Customers table. If the table name contains a space or any sign other than plain letters and digits, you put it in single quotes, like 'Customers 2025'[City]. Without them, Power BI rejects the formula.
See the lesson: Column referenceDAX query view
The Power BI Desktop screen where you write DAX queries. Every query goes through EVALUATE, which always returns a table.
EVALUATE { [Revenue] }Shows 1,700,000. The curly braces turn the value into a table with one row and one column.
See the lesson: DAX query viewExpression
Anything that returns a result: a number written as is, a text in quotes, a calculation, or a function.
DIVIDE( SUM( Sales[Amount] ), 4 )Three expressions. On the whole Sales table, SUM( Sales[Amount] ) returns 1,700,000; 4 returns 4; so DIVIDE returns 425,000.
See the lesson: ExpressionFunction
A DAX word that does one precise job. It is always followed by parentheses, which hold its arguments.
SUM( Sales[Amount] )The SUM function, with a single argument, the column to add up.
See the lesson: FunctionMeasure reference
The name of a measure in square brackets. You write it without a table name, so you can tell it from a column at a glance.
[Revenue]The Revenue measure. Sales[Amount] is a column, [Revenue] is a measure.
See the lesson: Measure referenceOperator
A sign that combines two values: + - * / to calculate, & to join text, = <> < > <= >= to compare, && and || to combine conditions.
"New York" & " " & 2025Returns the text “New York 2025”.
See the lesson: OperatorScalar
A single value: a number, a text, a date. A measure always returns a scalar, never a table.
[Revenue]With no filter, the measure returns 1,700,000, a scalar. FILTER( Sales, … ), on the other hand, returns a table.
See the lesson: ScalarSyntax
The instructions for using a function. It says which arguments the function expects, what kind they are and in what order. An argument in square brackets is optional.
FILTER( <table>, <condition> )FILTER expects a table, then a condition.
See the lesson: SyntaxVariable
A name given to a value or a table with VAR. It is calculated only once, with the filters present where it is written.
VAR Total = [Revenue] RETURN CALCULATE( Total, Customers[City] = "New York" )In a card with no filter, the measure returns 1,700,000, not 900,000. Total is already calculated, and CALCULATE does not touch it.
See the lesson: Variable
04Measures, columns and tables
Aggregator
A function that takes a whole column and reduces it to a single value: SUM, AVERAGE, MIN, MAX, COUNT, DISTINCTCOUNT…
SUM( Sales[Qty] )SUM adds up the 12 quantities of the column and returns a single value, 75.
See the lesson: AggregatorCalculated column
A column added to a table. It is calculated row by row when the data is refreshed, then stored.
Calculated Amount = Sales[Qty] * Sales[Price]One value per row, so 12 values stored in Sales.
See the lesson: Calculated columnCalculated table
A table added with a DAX formula, using the New table button. It is calculated only once, when the data is refreshed, and the report’s filters do not change it.
New York Customers = FILTER( Customers, Customers[City] = "New York" )A table of 3 rows, C001, C002 and C003, kept in Power BI.
See the lesson: Calculated tableIterator
A function that goes through a table row by row, calculates an expression on each row, then draws a single result from all those calculations. SUMX, AVERAGEX, FILTER and RANKX are iterators.
SUMX( Sales, Sales[Qty] * Sales[Price] )With no filter, 12 multiplications, one per row of Sales, then one addition, which returns 1,700,000.
See the lesson: IteratorMeasure
A formula with a name that measures a figure you want to track, like revenue or a quantity. Hence its name. It returns a single value each time it is calculated, and Power BI recalculates it for each row, column or total of the visual, with the filters that apply there.
Revenue = SUM( Sales[Amount] )With no slicer, 900,000 on the New York row and 1,700,000 on the “Total” row. Same formula, different filters.
See the lesson: MeasureTabular
Something that is a table, with rows and columns. FILTER returns a tabular result. A measure never does, because it always returns a scalar.
FILTER( Sales, Sales[Amount] > 100000 )Returns a table, the one with the 8 sales whose amount is over 100,000.
See the lesson: TabularVirtual table
A table created while a formula is calculated, then forgotten. It never shows up in the Data pane.
FILTER( Sales, Sales[Amount] > 100000 )With no filter, a table of 8 rows, kept for the time of the calculation.
See the lesson: Virtual table