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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
Mohammed-
Resolver I
Resolver I

Merge Column

Hi

  Please need help for merge 2 column in the same table to create a ne culomn

  the new column should be include the following

       2004-01

       2004-02

       2004-03

      2004- 04

 

 

 

 

Mohammed_0-1725234794202.png

 

Thanks

  Mohammed

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Hi @Mohammed- ,

I create a table as you mentioned in Data Factory.

vyilongmsft_0-1725239185605.png

Then I think you can create a custom column.

vyilongmsft_0-1725239667647.png

Custom = Text.From([Year]) & "-" & Text.PadStart(Text.From([Mon]), 2, "0")

vyilongmsft_1-1725239724770.png

vyilongmsft_2-1725239771726.png

 

 

 

Best Regards

Yilong Zhou

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

View solution in original post

Dir Sir,

   Thanks for your Replay

   I used your Formula

     

Table.AddColumn(#"Sorted rows", "Custom", each Text.From([Year]) & "-" & Text.PadStart(Text.From([Mon]), 2, "0"))
it is working fine with me
This is the result after some trasnformation
Thanks Again
 
Mohammed_0-1725292432179.png

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Mohammed- ,

I create a table as you mentioned in Data Factory.

vyilongmsft_0-1725239185605.png

Then I think you can create a custom column.

vyilongmsft_0-1725239667647.png

Custom = Text.From([Year]) & "-" & Text.PadStart(Text.From([Mon]), 2, "0")

vyilongmsft_1-1725239724770.png

vyilongmsft_2-1725239771726.png

 

 

 

Best Regards

Yilong Zhou

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

Dir Sir,

   Thanks for your Replay

   I used your Formula

     

Table.AddColumn(#"Sorted rows", "Custom", each Text.From([Year]) & "-" & Text.PadStart(Text.From([Mon]), 2, "0"))
it is working fine with me
This is the result after some trasnformation
Thanks Again
 
Mohammed_0-1725292432179.png

 

Helpful resources

Announcements
April Fabric Update Carousel

Fabric Monthly Update - April 2026

Check out the April 2026 Fabric update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Top Solution Authors
Top Kudoed Authors