Complete DAX Function Reference for Power BI

1. Aggregation Functions (Basics)

FunctionDescription
SUM()Total of a column
AVERAGE()Mean value
MIN(), MAX()Smallest/largest value
COUNT()Count non-blank values
COUNTA()Count all non-empty
COUNTBLANK()Count blank values
COUNTROWS()Count number of rows in a table
DISTINCTCOUNT()Count distinct values

2. Logical Functions

FunctionDescription
IF()Conditional logic
IFERROR()Return alternate value on error
SWITCH()Simplified multiple IFs
AND(), OR(), NOT()Boolean logic
ISBLANK()Check for blank
ISNUMBER(), ISTEXT(), ISERROR()Type checks
SELECTEDVALUE()Returns selected slicer value or alternate

3. Filter & Context Modification

FunctionDescription
CALCULATE()Modify filter context (core DAX engine)
CALCULATETABLE()Like CALCULATE but returns a table
FILTER()Return a table with rows that match condition
ALL()Remove filters from table/column
ALLEXCEPT()Remove all filters except specified
REMOVEFILTERS()Alternative to ALL()
VALUES()Return unique values in a column
DISTINCT()Returns distinct values (like VALUES but no blanks)
KEEPFILTERS()Retain filter when using CALCULATE
USERELATIONSHIP()Activates an inactive relationship
CROSSFILTER()Modify filter direction between related tables

4. Iterator (X) Functions

(Operate row by row over a table)

FunctionDescription
SUMX()Sum of an expression over a table
AVERAGEX()Average of expression over a table
MINX(), MAXX()Min/Max over a row expression
COUNTX()Count over table rows
RANKX()Ranks values over a table
PRODUCTX()Product over expression
FILTERX()Applies filters row-by-row (indirectly)

5. Time Intelligence Functions

FunctionDescription
DATEADD()Shift date by interval
SAMEPERIODLASTYEAR()Prior year same range
PREVIOUSYEAR(), NEXTYEAR()Full prior/next year
DATESYTD()Year-to-date
TOTALYTD(), TOTALQTD(), TOTALMTD()Time-to-date totals
PARALLELPERIOD()Shift period parallel to current
FIRSTDATE(), LASTDATE()First or last non-blank date
CLOSINGBALANCEMONTH()Closing balance by period
DATESBETWEEN()Date range for custom filtering
STARTOFYEAR(), ENDOFYEAR()Year boundaries

Requires a properly marked Date table with DATE column.

6. Math & Statistical Functions

FunctionDescription
DIVIDE(x, y, 0)Safe division
ROUND(), ROUNDDOWN(), ROUNDUP()Control decimal precision
ABS()Absolute value
MOD()Modulus
INT()Round down to integer
CEILING(), FLOOR()Round up/down to multiple
EXP(), POWER(), LN()Exponents and logs
SQRT()Square root
RANKX()Ranking within context

7. Text Functions

FunctionDescription
CONCATENATE(), &Join text strings
LEFT(), RIGHT(), MID()Extract substrings
UPPER(), LOWER()Change case
LEN()Length of string
TRIM()Remove extra spaces
REPLACE(), SUBSTITUTE()Modify text
FORMAT()Format numbers/dates/text
SEARCH(), FIND()Find substring index

8. Table Functions

FunctionDescription
ADDCOLUMNS()Add new columns to a table expression
SELECTCOLUMNS()Return specific columns
GENERATE()Cartesian product
CROSSJOIN()Combine rows from tables
UNION()Append tables
INTERSECT()Common rows from two tables
EXCEPT()Table A minus Table B
SUMMARIZE()Group by columns
GROUPBY()Advanced grouping (alternative to SUMMARIZE)
NATURALINNERJOIN()Joins using relationships
LOOKUPVALUE()Scalar lookup (like VLOOKUP)
RELATEDTABLE()Returns related table for a row
TOPN()Top N rows by expression
GENERATESERIES()Create sequential table

9. Relationships & Lookup Functions

FunctionDescription
RELATED()Pull column from related table (1-to-many)
RELATEDTABLE()Pull table from many-to-1 side
LOOKUPVALUE()Lookup a scalar value (like Excel VLOOKUP)
USERELATIONSHIP()Activate inactive relationship
CROSSFILTER()Set direction of filter in a relationship

10. Information & Type Functions

FunctionDescription
ISBLANK()Checks if value is blank
ISERROR(), IFERROR()Error handling
ISTEXT(), ISNUMBER()Check data types
CONTAINS()Returns TRUE if value exists in column
HASONEVALUE()Checks if exactly one value exists
HASONEFILTER()Check filter presence
IN()Check if a value exists in a set (like SQL IN)
TREATAS()Cast table as filter context
UNICHAR()Add Unicode icons/symbols (like arrows)

11. Variable & Control Functions

FunctionDescription
VARDefine a variable
RETURNReturn the result of a variable or expression
IF(), SWITCH()Branching logic
TRY()Error-tolerant expression (premium)
DEFINEUsed in external tools like DAX Studio

12. Advanced Functions (Performance/Modeling)

FunctionDescription
RANKX()Rank based on expression
ROLLUP(), ROLLUPADDISSUBTOTAL()Custom subtotals
ISINSCOPE()Detect drilldown context
ALLSELECTED()Filters from visuals, not slicers
PATH(), PATHITEM()Hierarchy management
CONTAINSSTRING()Check if text contains substring
FORMAT()Format values as dates, currency, etc.

Tips for Using This List:

  • Search by goal: Need to filter? Look under Filter. Need ranking? Check Math & Stats.
  • Start with base function: Master CALCULATE, FILTER, SUMX, RANKX, ALL.
  • Use iterators when logic is row-by-row.
  • Use table functions when shaping, merging, or creating virtual tables.
  • Test in DAX Studio or Power BI Measure Tools when working with advanced logic.

Final Word

With this list, you can:

  • Write any business logic in Power BI
  • Build dynamic KPIs, custom visuals, and slicer-aware logic
  • Understand and debug complex enterprise reports
  • Transition into advanced data modeling and optimization