web
You’re offline. This is a read only version of the page.
close
Skip to main content
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

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:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    on at
    Re: Vacation Days Left Calculation using Flow

    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
    on at
    Re: Vacation Days Left Calculation using Flow

    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
    on at
    Re: Vacation Days Left Calculation using Flow

    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

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 Automate

#1
Tomac Profile Picture

Tomac 497 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 477 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 242

Last 30 days Overall leaderboard