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

Varchar column to milliseconds

Hello everyone,

 

I have 3 columns (nvarchar(50)) in a SQL table, that represent the multiple durations that occur in a call. As an example

 

duration_1duration_2duration_3
00.00:04:53.72000        00.00:00:02.83169        00.00:05:16.25872      
00.00:03:45.0014700.00:00:11.4708000.00:04:23.09519
00.00:00:00.1513800.00:00:00.0000000.00:00:00.00000

 

This is in milliseconds, but when I connect this table to Power BI and change the data_type to Time, I get an error. How can I have the millieseconds? I need it to perform some calculations between each durations. 

Thanks!

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

Hi, @Anonymous ;

I'm not sure what your raw data looks like (in SQL), powerBI allows you to change the display format,

vyalanwumsft_0-1650867119347.png


Best Regards,
Community Support Team _ Yalan Wu
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-yalanwu-msft
Community Support
Community Support

Hi, @Anonymous ;

Is your problem solved? If so, kindly mark the proper reply as a solution to help others having the similar issue and close the case. If not, let me know and I'll try to help you further.


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

v-yalanwu-msft
Community Support
Community Support

Hi, @Anonymous ;

I'm not sure what your raw data looks like (in SQL), powerBI allows you to change the display format,

vyalanwumsft_0-1650867119347.png


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

 

Anonymous
Not applicable

After formatting, if I do the calculations between them it preserves the milliseconds, which it was what I was looking for 🙂

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.