Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
how can i find the diff bw two date/time columns.
col1 col2
9-4-2018 15:30:00 28-03-2018 21:00:00
Hi @Surya1,
In the data view, you can try the formula below.
Column = DATEDIFF([Column1], [Column2],HOUR)
Best Regards,
Dale
@Surya1, in the Query Editor, try:
duration_calc = DateTime.From([Column2])-DateTime.From([Column1])
Returns
-11.77083333
-11.77083333 corresponds to:
Duration.Days([duration_calc]) =-11 Duration.Hours([duration_calc]) =-18 Duration.Minutes([duration_calc])=-30
Proud to be a Super User!
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.