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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
TomVranken
Regular Visitor

Milliseconds between

Hi everybody,

 

I'm setting up a control dashboard that includes the monitoring of an API connection.

 

I have a start and end time stamp of the transactional data and I use the datediff() function to monitor performance of the API. On the most detailled level, the Datediff() function gives me the rounded number of seconds between the two time stamps, but i'm looking for Milliseconds.

 

I've tried converting the datevalues to decimal number and then subtracting  (end time - start time). This gives me an outcome that does not related to the outcome I get when using dateDiff() in seconds.

 

Do you know 1) what the outcome is when you convert a datetine in PowerBI to decimal? (it is not Unix/epoch time)

2) How I should approach getting the difference in milliseconds between two datetime timestamps. 

 

Thanks!

2 REPLIES 2
BeemsC
Resolver III
Resolver III

Hey,

I don't really understand the first question
For the seconds to milliseconds, just create a new measure where you get the output in seconds * 1000

The main question is that I need the millisencond level of detail. If I use the DATEDIFF() function the lowest level is seconds. 300 millisenconds will round of the 0 and 900 milliseconds will round to 1, which in my usecase is not detailled enough.

 

As an alternative to the DATEDIFF() function I tried to do something like EndDate - StartDate, but that gives me strange results.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.