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

convert serial dates to dates using M Script

Hi Experts

Sample data link: https://www.dropbox.com/s/szibko8edntt2ru/Test.pbix?dl=0

 
having a nightmare i am trying to convert several columns that are currently serieal dates as into date format dd/mm/yyyy
lets assumes the columns name are 
Column 1
Column 2 
column 3
in table MDR_TRANSLOG_LATEST
What do i need to add on the next line after MDR_TRANSLOG_LATEST1 = USER_MDR{[Name="MDR_TRANSLOG_LATEST"]}[Data],
 
MDR_TRANSLOG_LATEST1 = USER_MDR{[Name="MDR_TRANSLOG_LATEST"]}[Data],
in
MDR_TRANSLOG_LATEST1
 
DATE are values are coming in as text
41831
41524
etc..
 
i can convert this to date using DAX, but would like to add a step in Power Query. 
my dax

FORMAT( VALUE(MDR_TRANSLOG_LATEST[PR1_CREATION]),"dd/mm/yyyy")
1 ACCEPTED SOLUTION
v-yuta-msft
Community Support
Community Support

@Anonymous ,

 

Have you tried the Date.From function as below?

Capture.PNG 

 

Community Support Team _ Jimmy Tao

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-yuta-msft
Community Support
Community Support

@Anonymous ,

 

Have you tried the Date.From function as below?

Capture.PNG 

 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Thanks Jimmy

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.