List.Union
This topic applies to the Power Query Formula Language which can be used with Power Query and Power BI Desktop to build queries that mashup data. See the list of function categories.
Returns a list from a list of lists and unions the items in the individual lists. The returned list contains all items in any input lists. Duplicate values are matched as part of the Union.
List.Union(list as list,optional equationCriteria as any) as list
| Argument | Description |
|---|---|
| list | The List of lists to check. |
| optional equationCriteria | An optional equation criteria value to control equality comparisons. For more information about equality comparisons, see Parameter Values. |
List.Union({ {1..5}, {2..6}, {3..7} }) equals {1..7}
List.Union({ {1..5}, {4..8}, {7..11} }) equals {1..11}
List.Union({ {1, 1, 1, 2}, {1, 1, 2, 2} }) equals {1, 1, 1, 2, 2}
Show: