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 Insert Or Add Emojis In Microsoft Teams Status Message

Pass GUID As Parameter To Action Using ASP.NET MVC ContribGrid