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
Anonymous
Not applicable

Not able to convert to date format

Hello experts:

 

I am trying to merge 3 columns in one converting the final result into date format.

1) Merging the columns: StartDate=[Start date.2.2]/[Start date.2.1]/[Start date.2.3]

2) Converting to Date format

 

However the final result is messed up! The dates don't match against the original data.

Would someone have any suggestion? How to do that?

1) Merging these 3 cols:

Pic1.jpgPic2.jpgPic3.jpgPic4.jpg

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Thanks @erik_tarnvik! Much appreciate it!!

View solution in original post

3 REPLIES 3
erik_tarnvik
Solution Specialist
Solution Specialist

In Power Query you must use the functions available in the Power Query language (sometimes called M). If your columns are numbers, your formula is a division, not a concatenation of strings.

 

Try writing the same as this:

= Text.From([Start date.2.2]) & "/" & 
Text.From([Start date.2.1]) & "/" &
Text.From([Start date.2.3])

Or if you want the column to conatin an actual date rather than a text string representing a date, try

= #date([Start date.2.3],[Start date 2.1],[Start date 2.2])  

 

Anonymous
Not applicable

Thanks @erik_tarnvik! Much appreciate it!!

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.