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
Anonymous
Not applicable

.4 Time data format

Hello everyone,

 

I wondered if it is possible to have date or datetime records that look like this "17:10:12.3123" for example. I can't find a way to format it like this, perhaps I am not looking good or is there a workaround ?

 

Thanks in advance 🙂

 

Best regards,

L.Meijdam

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

Can you break that format down?

 

Something like this might help:

 

https://community.powerbi.com/t5/Community-Blog/Aggregating-Duration-Time/ba-p/22486

 


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

4 REPLIES 4
Greg_Deckler
Super User
Super User

Can you break that format down?

 

Something like this might help:

 

https://community.powerbi.com/t5/Community-Blog/Aggregating-Duration-Time/ba-p/22486

 


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Hi @Greg_Deckler,

 

It was a very interesting/usefull article and I deffinitely learned a few things, but the problem I am facing at the moment is that when I create a connection with our server with a column with values like:

 

"2017-05-13 11:10:10.1234" 

 

When I do that Power BI does'nt even let me import that value as it is, it always automatically changes it to a value like:

 

"2017-05-13 11:10:10"

 

We use these values to calculate the difference in Power BI but it is important that the .4 digits are'nt left out. We figured on a workaround with a new column in our server, but I find it strange that it is not possible to even import data like my example above. Since the .4 digit data is already lost on import we have quite some trouble with it.

 

It would be very helpfull if you know if it is impossible or not to import data like this 🙂

 

Thanks in advance!

 

Best regards,

L.Meijdam

 

Perhaps try specifying that column as Text when you import it.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Hi @Greg_Deckler,

 

I will try that and otherwise we'll use a workaround by adding another column with milliseconds in the server. Thanks for the help, also I found this under the ideas: 

 

https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/15906970-milliseconds-as-format-o...

 

Just leaving it here for other people, since it would be very useful.

 

Best regards,

L.Meijdam

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.