Reply
ben-t
Frequent Visitor
Partially syndicated - Outbound

datedifference value incorrect

 

Im using a measure to calculate the minutes difference between 2 times. 
But the datediff measure, the calculations between the 2 dates are incorrect. not sure if there's a format setting that I'm missing here. 

 

Example below, difference between 13:00:00 and 13:15:00 should be 15 minutes, but im getting 120. 

Screenshot 2021-08-16 141643.png

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

Syndicated - Outbound

@ben-t , if this is measure then it would have data for same group.

If this is a new column. Not no need for sumx. Just use datadiff

 

 

or

 

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

Syndicated - Outbound

@ben-t , if this is measure then it would have data for same group.

If this is a new column. Not no need for sumx. Just use datadiff

 

 

or

 

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Syndicated - Outbound

Thanks, found there were duplicate lines that were grouped together with the same name. 
removed duplicates and calculations correct now. 

avatar user

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

Check out the March 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)