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

60 Days of Data Days! Live and on-demand sessions, challenges, study groups and more! And it's all FREE!. Join now. Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

June Fabric Update Carousel

Fabric Monthly Update - June 2026

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

Top Solution Authors