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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors
Top Kudoed Authors