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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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