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
Gerhard1957
New Member

1899-12-31

Hi. I am new to Power BI and I have imported data from Excel. The Excel file has a time column which is properly formatted as hh:mm. On importing into Power BI each time slot is displayed with the following date at its start 1899-12-31. For example: 1899-12-31 09:00:00AM. How do I prevent this from happenning? I did merge the time column with the date column to see if the problem willl disappear but the 1899-12-31 date remains in the merged column. Can anybode help please?

1 ACCEPTED SOLUTION
v-qiuyu-msft
Community Support
Community Support

Hi @Gerhard1957,

 

Based on my test, if we format column cell as time value in Excel, after we import data from Excel to Power BI Desktop, the data type will be changed to Date/Time automatically. See:

 

q5.PNGt1 - Copy.PNG

 

In your scenario, you can change the data type of this column to Time and set its format.

 

t3.PNGt4.PNG

 

Best Regards,

Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-qiuyu-msft
Community Support
Community Support

Hi @Gerhard1957,

 

Based on my test, if we format column cell as time value in Excel, after we import data from Excel to Power BI Desktop, the data type will be changed to Date/Time automatically. See:

 

q5.PNGt1 - Copy.PNG

 

In your scenario, you can change the data type of this column to Time and set its format.

 

t3.PNGt4.PNG

 

Best Regards,

Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you Qiuyun_Yu

Gerhard1957
New Member

OK. I found a work-around by splitting the time column and then deleting the 1899-12-31 column. However, I would still like to prevent the problem if possible.

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.

Top Solution Authors
Top Kudoed Authors