web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Automate
Unanswered

get difference time

(0) ShareShare
ReportReport
Posted on by 248

Hello,

if i have data like this

image_2021-06-15_164616.png

 

 

 

 

and i want to get the difference between hours in case created and case closed. How to get it ?

Thank you

Categories:
  • Kaito Goto Profile Picture
    Microsoft Employee on at

    @AdhamFH Hello Adham.

    I suggest you try this:

    1) Using the "Compose" action of the Data Operation connector, convert the Case Created time and the Case Closed time into "ticks" under the ticks() math function.

    2) Using the same connector, subtract the number of ticks for the Case Created time from the Case Closed time. This will output the number of ticks (one tick = 1/10million of a second) between the two times.

    3) Convert the output from step 2 into seconds by dividing by 10 million.

     

    This should be the solution if the "difference" you are after is in seconds. Of course, the denominator on step 3 will change depending on if you want to measure the difference in other units such as minutes.

     

    Please accept this as a solution if solved, provide copies of any error messages if unsolved.

     

    All the best!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 289

#2
11manish Profile Picture

11manish 282 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 119

Last 30 days Overall leaderboard