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

M Language - Transforming Data format

Dear Masters of M Language,

 

Need help to work with data formats in M Language.

 

I have a column with the format dd/mm/yyyy  hh:mm:ss I need to replicate this column containing only dd/mm/yyyy.

 

I'm sure it's very simple, please help.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

PowerBI does not directly identify a date from a format dd/mm/yyyy hh:mm:ss but if you first convert your text to date/time it will work.

 

How to do this : 

1. On top of your culumn you can chose data type for your column. Click there and choose Date/Time.

image.png

image.png

Repeath this step but chose "Date" this time.

Dont replace current change but add a new step (screenshot below)

image.png

Tell me if this worked as desired ! 

Regards, 

Etienne

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

PowerBI does not directly identify a date from a format dd/mm/yyyy hh:mm:ss but if you first convert your text to date/time it will work.

 

How to do this : 

1. On top of your culumn you can chose data type for your column. Click there and choose Date/Time.

image.png

image.png

Repeath this step but chose "Date" this time.

Dont replace current change but add a new step (screenshot below)

image.png

Tell me if this worked as desired ! 

Regards, 

Etienne

Anonymous
Not applicable

Thanks! It worked just fine.

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.