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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

Top Solution Authors
Top Kudoed Authors