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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
v-yilong-msft
Community Support
Community Support

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
v-yilong-msft
Community Support
Community Support

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.

Top Solution Authors