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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
ganeshnr073
Helper I
Helper I

Get difference between date and time

I need to get the difference between two date and time coulmns, The output should be in hours . 

 

It needs to be merged column - Current Date.

 

Thank you ! 

ganeshnr073_0-1659520082656.png

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@ganeshnr073 , if they are columns then use datediff

 

datediff([merged], now() , hour)

 

 

or

 

datediff([merged], [current_date] , hour)

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@ganeshnr073 , if they are columns then use datediff

 

datediff([merged], now() , hour)

 

 

or

 

datediff([merged], [current_date] , hour)

Thank you for the help !! 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.