Cheat Sheets/Power BI/UNION
DAX function

UNIONDAX function reference

Stack rows from tables.

Syntax

dax
UNION(<table1>, <table2> [, …])

Examples

dax
UNION(Actuals, Budget)
A table
dax
UNION(VALUES(Actuals[Region]), VALUES(Budget[Region]))
Every region that appears in either table, including duplicates if a region is in both

Wrap UNION in DISTINCT when you need true set-union semantics.

dax
DISTINCT(UNION(VALUES(Actuals[Region]), VALUES(Budget[Region])))
Deduplicated combined region list

Common mistakes & gotchas

Related DAX functions

From Tables & set operations

Used in these tutorials

← Back to the Power BI (DAX) cheat sheet