Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Sales forum / diffinhours not showin...
Sales forum
Answered

diffinhours not showing in decimal values

Posted on by

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.

Categories:
  • Suggested answer
    Abdul Wahab Profile Picture
    Abdul Wahab 12,070 Moderator 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 Moderator 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 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 Moderator 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.

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 9th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,246 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,041 Super User 2024 Season 2

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans