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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
RichJW
Helper III
Helper III

Concatenating Columns changes Date Format

Hi all,

 

I have a simple function concatenating 3 columns (2 are text, 1 is in date format).

 

ConcDate = Tasks[ProjectName] & " : " & Tasks[TaskName] & " : " & Tasks[TaskStartDate].[Date]
 
When the result of this is displayed in a Card visualisation, the date format changes from what I have it set as in Modelling from dd/mm/yy to mm/dd/yyyy. I guess this is because the new concatenated column is in text format, so my previously set date format (dd/mm/yy) is ignored.
 
Is there a method I can force the new concatenated column to use dd/mm/yy rather than what it wants me to use?
 
Many thanks,
Rich
1 ACCEPTED SOLUTION
themistoklis
Community Champion
Community Champion

@RichJW

 

You can use the format function for the concatenation:

 

ConcDate = Tasks[ProjectName] & " : " & Tasks[TaskName] & " : " & FORMAT(Tasks[TaskStartDate] ,"dd/mm/yyyy")

View solution in original post

3 REPLIES 3
thibbos
Resolver I
Resolver I

I have  asimilar issue. My dates are showing fine as dd/mm/yyyy but when concatenating it gets a dash iso slash dd-mm-yyyy
Applying a format function as suggested above did not work.

anybody an idea?

themistoklis
Community Champion
Community Champion

@RichJW

 

You can use the format function for the concatenation:

 

ConcDate = Tasks[ProjectName] & " : " & Tasks[TaskName] & " : " & FORMAT(Tasks[TaskStartDate] ,"dd/mm/yyyy")

Wonderful, thank you @themistoklis. That works a dream.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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