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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Tom_G
Helper II
Helper II

Date/Time not showing detail

Hello, i've imported some date/time data into BI in the format 

YYYY-MM-DD HH24:MI:SS. 
 
In the Query Editor (in all steps), the data is showing correctly.
Arrival Date Departure Date
24/03/2018 14:14:5025/04/2018 04:15:07
16/06/2018 16:09:1317/06/2018 13:12:15

However, in BI outside the query editor the time part of the data is just showing as zeros (as below) for the vast majority of the data set except a small part - I can't get the time data to display. The column data types are date/time. 

 

Arrival DateDeparture Date
24/03/2018 00:00:0025/04/2018 00:00:00
16/06/2018 00:00:0017/06/2018 00:00:00

 

 In short I don't know why this is happening. I simply want to display the data as it appears in the query editor.

 

Let me know any suggestions on how to fix this!

 

Thanks!

1 ACCEPTED SOLUTION

Hi @v-kelly-msft, thanks very much for your help. After a lot of head scratching, it seems that the problem was due to one inconsistently formatted csv file that had DD-MM-YYYY HH:MM:SS instead of YYYY-MM-DD HH24:MI:SS. The pbix contained multiple csv's but the inconsistent format within the same column was causing this issue in BI. 

 

Thanks for your solution I will keep this in mind if I encounter similar issues. Thanks

View solution in original post

4 REPLIES 4
v-kelly-msft
Community Support
Community Support

Hi  @Tom_G,

 

Go to query editor>applied steps>Changed Type,removed the content I marked in red:

vkellymsft_1-1627544550645.png

 

Then do the following steps:

Right click on the column>Change Type>Using Locale(English Palau):

vkellymsft_2-1627544606836.png

 

 

vkellymsft_0-1627544334524.png

 

As tested here,if you directly change the column in query editor to datetime format,it will return errors:

vkellymsft_3-1627544692234.png

Try the method I provided above to see whether it can solve the issue.

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

Hi @v-kelly-msft, thanks very much for your help. After a lot of head scratching, it seems that the problem was due to one inconsistently formatted csv file that had DD-MM-YYYY HH:MM:SS instead of YYYY-MM-DD HH24:MI:SS. The pbix contained multiple csv's but the inconsistent format within the same column was causing this issue in BI. 

 

Thanks for your solution I will keep this in mind if I encounter similar issues. Thanks

Hi @Tom_G ,

 

So your issue is solved,right?If so,could you pls mark the reply as answered to close it?

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

amitchandak
Super User
Super User

@Tom_G , I doubt that can happen unless there is step in power query that is changing the data type to date(only date in power query)

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.