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
rusgesig
Helper IV
Helper IV

Converting Datetime from Excel applies incorrect date

I have a bunch of logs that I need to combine, each is a excel file with no tables and a bunch of timestamps. The timestamps are datetime in excel, the datevalue includes the date.

rusgesig_1-1649750530297.png

When I try to convert the column to datetime from text, the time is correct but the date is not.

rusgesig_4-1649750878173.png

It's showing as 12 April instead of 4 April. 

Is there a way I can get it to reflect the datetime as per the Excel cell value?

These reports are in .xls format.

 

2 REPLIES 2
rusgesig
Helper IV
Helper IV

@Vijay_A_Verma  - sorry not sure if I replied correctly.
Here is the column before transformation.

rusgesig_1-1649755329217.png

 

I'm using a workaround by appending the date to the filename via microsoft flow, then I leave start/end times as time with no date, and extract the date from the filename.

rusgesig_0-1649755266919.png

I then generate a time series with hours and minutes, join the start time on that, join the date on the calendar and it all comes together nicely.

 

rusgesig_2-1649755420752.png

rusgesig_4-1649755497616.png

Vijay_A_Verma
Super User
Super User

Can you post the screenshot of Start Time column of PQ before converting to datetime?

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.

Top Solution Authors
Top Kudoed Authors