Donate

How To Combine Specific Columns Per Table Using DAX Union

Guys,

Here's a DAX formula that will perform union of two tables given their specific column names in Power BI. The trick is to use SELECTCOLUMNS () function for each table.
Countries =
UNION (
    SELECTCOLUMNS (
        'Main Location',
        "Countries", 'Main Location'[Countries]
    ),
    SELECTCOLUMNS ( 
  'Sales', 
  "Countries", 'Sales'[Countries] )
)

Comments

Donate

Popular Posts From This Blog

WPF CRUD Application Using DataGrid, MVVM Pattern, Entity Framework, And C#.NET

TypeScript Error Or Bug: The term 'tsc' is not recognized as the name of a cmdlet, function, script file, or operable program.

Invalid nested tag div found, expected closing tag input