cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rusgesig
Helper III
Helper III

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 III
Helper III

@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
May 2023 update

Power BI May 2023 Update

Find out more about the May 2023 update.

Submit your Data Story

Data Stories Gallery

Share your Data Story with the Community in the Data Stories Gallery.

Top Solution Authors
Top Kudoed Authors