DAX function shortcuts in Power BI Some commonly used
DAX function shortcuts in Power BI Some commonly used
1. SUMX: Calculates the sum of an expression for all the rows in a table.
Shortcut: SUMX(Table, Expression)
2. AVERAGEX: Calculates the average of an expression for all the rows in a table.
Shortcut: AVERAGEX(Table, Expression)
3. MAXX: Returns the maximum value of an expression for all the rows in a table.
Shortcut: MAXX(Table, Expression)
4. MINX: Returns the minimum value of an expression for all the rows in a table.
Shortcut: MINX(Table, Expression)
7. RELATEDTABLE: Returns a table that contains related records from another table.
Shortcut: RELATEDTABLE(Table)
10. ALL: Returns all the rows in a table, or all the values in a column, ignoring
any filters that might have been applied.
Shortcut: ALL(Table/Column)
11. SELECTEDVALUE: Returns the value if there's only one value in the specified
column in the current context; otherwise, returns a blank.
Shortcut: SELECTEDVALUE(Column)
12, VALUES: Returns a single column table of unique values from a column, removing
any duplicates.
Shortcut: VALUES(Column)
14. IF: Returns one value if a condition is true and another value if it's false.
Shortcut: IF(Condition, TrueValue, FalseValue)
15. SWITCH: Evaluates an expression against a list of values and returns the result
corresponding to the first matching value.
Shortcut: SWITCH(Value, Value1, Result1, Value2, Result2, ...)
16. DATEDIFF: Returns the count of interval boundaries crossed between two dates.
Shortcut: DATEDIFF(StartDateTime, EndDateTime, Interval)
17. CONCATENATEX: Concatenates the result of an expression evaluated for each row
in a table, using a specified delimiter.
Shortcut: CONCATENATEX(Table, Expression, Delimiter)
18. LASTDATE: Returns the last date in the current context for the specified column
of dates.
Shortcut: LASTDATE(DateColumn)
19. EARLIER: Returns the value of the specified column from a previous row in the
context.
Shortcut: EARLIER(Column)
20. RELATEDTABLE: Returns a table that contains related records from another table.
Shortcut: RELATEDTABLE(Table)