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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
ben-t
Frequent Visitor

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

@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.

 

Share with Power BI Enthusiasts: 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

@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.

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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

Helpful resources

Announcements
Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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