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 Platform Community / Forums / Power Automate / Calculation results sh...
Power Automate
Answered

Calculation results showing as integers as opposed to float values when calculating decimal hours for an event using ticks

(0) ShareShare
ReportReport
Posted on by 16

Hi,

I have a flow that puts events from my outlook calendar into my Microsoft list as they are created and as part of that I using a variable that calculates the duration of the meeting however while this works for meetings that will will be 1 hour or two hours its not working for meetings that are 1.50 or 1.25 hours etc. I have been careful to avoid the use of integers but maybe I am missing something.

 

RobElliott1_0-1690208700375.png

 

The formula I am using is the following which uses the Meeting start and end time from outlook and then this variable gets plugged into the Create new list function:

div(sub(ticks(triggerOutputs()?['body/end']),ticks(triggerOutputs()?['body/start'])),36000000000)
 
My field within MS Lists is the following
RobElliott1_1-1690208849045.png

 

Any help is appreciated!

 

Thanks!

Categories:
  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @RobElliott1 ,

     

    Please try '36000000000.0' rather than '36000000000'.

    vxiaochenmsft_0-1690250116180.png

    vxiaochenmsft_1-1690250140591.png

    vxiaochenmsft_2-1690250160129.png

     

    Best Regards,

    Wearsky

  • RobElliott1 Profile Picture
    16 on at

    Thankyou Wearsky, that seems to show the decimal place but while the flow runs when the duration is 0.5 or 1.5, its not creating a new list item

    RobElliott1_0-1690276113222.png

    The initialize variable in between is to create a text array for another field so its not related to the duration field.

     

    For reference, this is the create new item flow

    RobElliott1_1-1690276333566.png

     

    Thanks!

  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @RobElliott1 ,

     

    This seems to be a new question, not related to the old one.

    From the screenshot, the loop doesn't seem to execute even once.

    In other words, the input parameter of apply to each is an empty array.

     

    Best Regards,

    Wearsky

  • RobElliott1 Profile Picture
    16 on at

     you, I will ask a new question 🙂

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 299

#2
11manish Profile Picture

11manish 274 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 119

Last 30 days Overall leaderboard