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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
jmckentr
Frequent Visitor

How to combine two column from two different table into one.

I need to merge two columns from two septerate tables into one new table without going into edit mode (dont have ability to - long story).

 

Example:

Sales FY 17ShipDateMethodYear
929191/20/2017Y2017
800922/23/2017T2017
998563/4/2017Y

207

 

Sales FY 16ShipDateTypeMonth
367721/20/2016AirJan
237682/23/2016PortFeb

 

SalesShipDate
929191/20/2017
800922/23/2017
998563/4/2017
367721/20/2016
237682/23/2016

 

Is there DAX funcationality or something else that can help me achieve this?

1 ACCEPTED SOLUTION
v-sihou-msft
Microsoft Employee
Microsoft Employee

@jmckentr

 

You just need to summarize FY and ShipDate column for both tables and UNION() them together.

 

Table = UNION(SUMMARIZE(FY17,FY17[Sales FY 17],FY17[ShipDate]),SUMMARIZE(FY16,FY16[Sales FY 16],FY16[ShipDate]))

12.PNG

 

 

Regards,

View solution in original post

2 REPLIES 2
v-sihou-msft
Microsoft Employee
Microsoft Employee

@jmckentr

 

You just need to summarize FY and ShipDate column for both tables and UNION() them together.

 

Table = UNION(SUMMARIZE(FY17,FY17[Sales FY 17],FY17[ShipDate]),SUMMARIZE(FY16,FY16[Sales FY 16],FY16[ShipDate]))

12.PNG

 

 

Regards,

ibarrau
Super User
Super User

You need to relate them in relationship view or in dax formula to proceed with this. If you already have them related, there is no need to write a dax creating a new table, you can just add a column to * table of relation with =RELATED('Table'[ColumnName]).

 

Regards,

 


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

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