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
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
Employee
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
Employee
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
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.