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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Solution Authors