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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
m_roussakis
Helper III
Helper III

Importing excel and date column not working in PBI

I have an excel file I use as source for my dashboard. It has a date column which appears like this on the excel:

m_roussakis_1-1654096766112.png

 

When I load it into Power BI the column displays the date in this weird format.

m_roussakis_0-1654096754050.png

 

I've tried to change column type to Date/Time but get an error:

 

m_roussakis_2-1654097033034.png

 

Any ideas?

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

The data is uploaded in this strange format, which actually is not strange, because this is how Power Query deals with data/time type. 
The integer value is the date part and the decimal value is the time part.

In order to workaround, convert the column type to decimal and then, in another step, convert it to date/time format. 

This must work

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

The data is uploaded in this strange format, which actually is not strange, because this is how Power Query deals with data/time type. 
The integer value is the date part and the decimal value is the time part.

In order to workaround, convert the column type to decimal and then, in another step, convert it to date/time format. 

This must work

This did it , thanks!

Anonymous
Not applicable

Glad to help!

 

Have a good one!

tamerj1
Super User
Super User

@m_roussakis 

Try "Use Locale"

otherwise close power bi and all office applications then change the system regional settings to ENGLISH US  

SergioSilvaPT
Resolver V
Resolver V

Hi @m_roussakis,

 

I tried to replicate but Power BI recognized correctly as Date/Time/Timezone on my side, can you please publish a copy of the excel so i can see what could be the problem?

 

I suspect that i may be the encoding of the excel file.

 

Regards,

Sérgio Silva 

 
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
Regards,
Sérgio Silva

If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Check out my blog for tips and tricks about Power BI: https://pbibits.wordpress.com/

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Top Solution Authors