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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors