Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Answered

diffinhours not showing in decimal values

Posted on by 2

Hi ,

I want to get decimal values of hours between two datetime fields but diffinhours is returning only whole 

eg 10.10 which is shown as 10 between two datetime fields.

10.40 shown as 11 between two datetime fields.

Thanks.

  • Suggested answer
    Abdul Wahab Profile Picture
    Abdul Wahab 12,070 Super User 2024 Season 1 on at
    RE: diffinhours not showing in decimal values

    Hi EKL,

    I have got one more solution for you. I hope you like it most.

    Here is the screenshot of of the implemented solution

    pastedimage1679464892685v1.png

    I created below columns to solve this problem:

    1. pastedimage1679464998146v2.png
    2. pastedimage1679465047931v3.png
    3. pastedimage1679465146004v4.png
      1. pastedimage1679465164631v6.png
  • Verified answer
    Abdul Wahab Profile Picture
    Abdul Wahab 12,070 Super User 2024 Season 1 on at
    RE: diffinhours not showing in decimal values

    Hi EKL,

    If we are talking about calculated columns. I may say Yes but again this is my thought. Otherwise, you can go for Power Automate. 

  • Suggested answer
    EKL Profile Picture
    EKL 2 on at
    RE: diffinhours not showing in decimal values

    Hello Abdul,

    Thank you.

    In that case we need a another field and is it a standard way of implementing??

  • Suggested answer
    Abdul Wahab Profile Picture
    Abdul Wahab 12,070 Super User 2024 Season 1 on at
    RE: diffinhours not showing in decimal values

    Hi EKL,

    How about taking the difference in minutes and then converting it to hours using a formula? A number of hours = Number of minutes divided by 60.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans