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

How To Test Or Check Dead Pixels And Backlight Bleed On Your Monitor Using Dead Pixel Checker In Windows 11

How To Insert Or Add Emojis In Microsoft Teams Status Message