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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.