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 / Vacation Days Left Cal...
Power Automate
Unanswered

Vacation Days Left Calculation using Flow

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

I have build a flow for a Sharepoint Vacation Tracking site. Every this is working fine, but the Compose function using Sub does not work, I keep getting error. I have read several blogs and post on this forum but could not find an answer. Please see the Flow screenshot belwo. I am using the follwing expression for compose 3.

sub(item()?['Vacation Days Left'],float(outputs('Compose2')))

 

I am also having issue with the time zone as when i create a calander entry its putting it a day ahead of the event. Like if the event date was requested for 1/28 it creates it on 1/27.Flow1.jpgFlow2.jpgimage.png

Categories:
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I was able to solve the issue with the date calculation. But now i run into a different issue, When i convert the numberofdays value into an integer i am getting a value of 512 doesn't matter what is the valflow3.jpgflow4.jpgue in the column.

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

    Hi @Anonymous,

     

    First you could check if the value of this field is displayed in SharePoint list and is consistent with the output in Flow.

    Without using any function, just output the value of this field and check if the value is 512, regardless of the function used.

    Perhaps it is because the formula of Calculation has an error, which leads to the occurrence of erroneous calculation results.

    Please try checking and correcting them and see if the issue still exists.

     

    Best Regards,

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    The values displayed in sharepoint table is right. Attached is the formula for the sharepoint column and the table

    value. By no means i am an expert sharepont and flow user, so if there is a better formula to calulate number of vacation days taken, please let me know.Flow5.jpgFlow6.jpg

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
11manish Profile Picture

11manish 298 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 289

#3
Henil Profile Picture

Henil 125

Last 30 days Overall leaderboard