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
Syndicate_Admin
Administrator
Administrator

Column of type Time, when exporting data to .xlsx recognizes it as Date

Greetings community.

My problem is as follows, from Power BI Desktop I have changed the data type from 2 columns (Start Time and End Time) to Time.

JGALVEZ_0-1637112483166.png

However, when you export the data from Power BI Online, the file .xlsx recognizes it as Date.

JGALVEZ_1-1637112529455.png

I know that it could be modified from the downloaded file, but the idea is that the export is done correctly.

In advance, thank you very much for the support.

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

Hi @Syndicate_Admin ,

 

You can try working with the data type in the Query Editor first.

 

You can use the Split Column function in query editor .

 

If you want to use the dax, you could try:

Column = LEFT('Table1'[Time],20)

 

Here is a similar thread that you can check to see if it helps you:

Date and Time format not recognized 

 

Hope it helps,


Community Support Team _ Caitlyn

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

2 REPLIES 2
v-xiaoyan-msft
Community Support
Community Support

Hi @Syndicate_Admin ,

 

You can try working with the data type in the Query Editor first.

 

You can use the Split Column function in query editor .

 

If you want to use the dax, you could try:

Column = LEFT('Table1'[Time],20)

 

Here is a similar thread that you can check to see if it helps you:

Date and Time format not recognized 

 

Hope it helps,


Community Support Team _ Caitlyn

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

PhilipTreacy
Super User
Super User

Hi @Syndicate_Admin  @JGALVEZ 

 

In the XLSX file it's actually a Date Time, you can see the time is 15:00:00, it's just displaying as a date.  When the time is exported it is give the default date portion which is what your file is displaying.  Change the column back to Time in Excel to remove the date part.

 

Regards

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


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.