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
Anonymous
Not applicable

Group, Merge or concatenate Table

I have to concatenate 4 tables.

 

Turn this

Table: 2014

Column: ID, Year, Value

Table: 2015

Column: ID, Year, Value

Table: 2016

Column: ID, Year, Value

Table: 2017

Column: ID, Year, Value

 

in

 

Table: Years

Colum ID = ID of 2014,2015,2016,2017

Colum Year = Year of 2014,2015,2016,2017

Colum Value = Value of 2014,2015,2016,2017

 

If is possible in power query

 

Ty

1 ACCEPTED SOLUTION

Hey,

You can Append as well as Merge using the query-editor ( See image)
vrobeeld.png

Alternatively you can use a DAX formula using the concatenate function.
For more info on this function use this link: https://msdn.microsoft.com/en-us/library/ee634811.aspx

Good luck

View solution in original post

5 REPLIES 5
TalAruety
Helper I
Helper I

Hi @Anonymous

Are you asking how to achieve this in SQL?

Anonymous
Not applicable

No, in power bi

 

Can I solve with append?

Is it the better pratice?

 

I am not sure what are you aiming for then.

Can you please eablorate?

 

What  i understand is that you have 4 tables in powerbi model, and you want to union them into a single one using DAX?

Hey,

You can Append as well as Merge using the query-editor ( See image)
vrobeeld.png

Alternatively you can use a DAX formula using the concatenate function.
For more info on this function use this link: https://msdn.microsoft.com/en-us/library/ee634811.aspx

Good luck

Or just combine the tables in Power Query (M):

 

= #"2014"&#"2015"&#"2016"&#"2017"

 

 

Group merge or concatenate table.png

Specializing in Power Query Formula Language (M)

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.