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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Calculating the differ...
Power Apps
Unanswered

Calculating the difference between start and end time. Calculated field required for HH:MM:SS

(0) ShareShare
ReportReport
Posted on by 56

Hi all,

 

I have been trying to build a calculated column that calculates the difference between Start and an end time in Dataverse. Both columns are Date and Time data types. I'd like the calculated column sum result to be in the HH:MM:SS format.

 

I have tried the Datediff calculation and using a TEXT formula eg. TEXT(End Time - Start Time, "hh:mm:ss") but it errors.

 

Any help on the calculation  is much appreciated.

 

Thanks

I have the same question (0)
  • Ami K Profile Picture
    15,679 Super User 2024 Season 1 on at

    @eel1 if you're talking about Calculated Columns, TEXT is not a supported function:

     

    https://learn.microsoft.com/en-us/power-apps/maker/data-platform/define-calculated-fields

     

    The same applies to Formula Columns (Power FX):

     

    https://learn.microsoft.com/en-us/power-apps/maker/data-platform/formula-columns

     

    A very fast and effective alternative is to create a Text column in your table, and then use Power Automate to populate that field.

     

  • LucaAlberigi88 Profile Picture
    19 on at

    Hello

    have you tried:

    DateDiff(date1,Now(),Hours) & DateDiff(date1,Now(),Minutes) etc?


    obviously change date1 and now() with your dates

    Luca

  • eel1 Profile Picture
    56 on at

    Thanks both for the replies. I have sorted it, thanks again.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard