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
cristianml
Post Prodigy
Post Prodigy

Period / date concatenate to text

Hi, 

I need to concatenate 2 columns with the Format YYYY-MM mmm'yy

I tried the following but it doesn't work :

YYYY-MM mmm'yy = CONCATENATE(Period[Year-Month] & " - " ,Period[Period])
 

cristianml_0-1630700325793.png

 

Any idea ?

 

Thanks !!

1 ACCEPTED SOLUTION
v-yalanwu-msft
Community Support
Community Support

Hi, @cristianml ;

Please try to modify it:

YYYY-MM mmm'yy2 = FORMAT([Year-Month],"yyyy-mm")&"-"&FORMAT([Period],"mmm yy")

The final output is shown below:

vyalanwumsft_0-1630920895598.png

Best Regards,
Community Support Team_ Yalan Wu
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

2 REPLIES 2
v-yalanwu-msft
Community Support
Community Support

Hi, @cristianml ;

Please try to modify it:

YYYY-MM mmm'yy2 = FORMAT([Year-Month],"yyyy-mm")&"-"&FORMAT([Period],"mmm yy")

The final output is shown below:

vyalanwumsft_0-1630920895598.png

Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

RandyPgh
Resolver III
Resolver III

Try putting your column name in brackets. The apostrophe is a special character and might be confusing the editor, although it ought to throw an error.

 

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!

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.