Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ayami123
Helper I
Helper I

Union two tables with different columns names in PowerBI

I have two tables with different names for the columns but with the same meaning and I need to union the two tables to one table with the names of the columns in table A.


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? 


note: this is example is copied,

{

Index

Opening_Date = Business_Date

Store_Name = Location

Store_Number = Location_Code

 

Table A

Opening_Date                  Store_Name                      Store_Number

1/1/2017                           New York                                  1

 

Table B

Business_Date                  Location                            Location_Code

2/1/2017                           Boston                                      2

 

Table C

Opening_Date                  Store_Name                      Store_Number

1/1/2017                           New York                                  1

2/1/2017                           Boston                                      2
}

 

1 ACCEPTED SOLUTION
v-huizhn-msft
Employee
Employee

Hi @ayami123,

Yes, you can use UNION in Power BI. Please click the "New Table" under Modeling on home page. Please see the button highlighted in yellow background. Then type the formula in the write zone. You will get TableC.

TableC = UNION(TableA,TableB)

1.PNG

Best Regards,
Angelia


View solution in original post

1 REPLY 1
v-huizhn-msft
Employee
Employee

Hi @ayami123,

Yes, you can use UNION in Power BI. Please click the "New Table" under Modeling on home page. Please see the button highlighted in yellow background. Then type the formula in the write zone. You will get TableC.

TableC = UNION(TableA,TableB)

1.PNG

Best Regards,
Angelia


Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.