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
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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

April Fabric Community Update

Fabric Community Update - April 2024

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