cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ayami123 Regular Visitor
Regular Visitor

Re: Union two tables with different columns names

I want to use union because I'm not allow to edit and create new excel file.  =_=
that's why i want to use union
is there anyway I can use Union in PowerBI? 

thangkt Frequent Visitor
Frequent Visitor

Re: Union two tables with different columns names

The solution for your problem can be released by using Union and Selectcolumns Function: 

 

Union(
selectcolumns(Table A,"Opening_Date", Table A[Opening_Date], "Store_Name", Table A[Store_Name],"Store_Number", Table A[Store_Number]),
selectcolumns(Table B,"Business_Date", Table B[Business_Date], "Location", Table B[Location],"Location_Code", Table B[Location_Code])
)

You should try this way.

 

Good luck! Smiley Happy

Highlighted
myvaux Visitor
Visitor

Re: Union two tables with different columns names

Hi @Ohad

 

The simplest way I found was to use the DAX - Union (Selectcolumns(), Selectcolumns())

 

Here you can select the tables, individual columns as well as rename those columns on the fly for the Union funciton to combine the dataset together.

 

Cheers,

M

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 145 members 1,614 guests
Please welcome our newest community members: