Balance Leave day in Leave request

Nguyen Huu 101 Reputation points
2020-08-25T16:02:16.723+00:00

Hi there,
i want to create leave balance day for each staff, Leave day per year: 12 day
How can i calculate the remain leave day of each staff, i tried like this but it doesn't work:

Remain day = 12-count([left day]

20199-image.png

20275-image.png

Would you please help?
Thanks.

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,185 questions
{count} votes

1 answer

Sort by: Most helpful
  1. ChelseaWu-MSFT 6,316 Reputation points
    2020-08-26T02:00:54.953+00:00

    The COUNT function in SharePoint Online is used to count the number of arguments that contain numbers in the fields you put within. It cannot be used to sum all values in this field.
    In addition, calculated column formulas can only be used to do horizontal calculations for the current row. It cannot do vertical calculation or sum across items.

    As a workaround, you can build a flow in this list and sum all Date left values, then do the rest of the calculation and update the column value for you.
    Here is a related tutorial for your reference: Calculate Sums and Show Totals.


    If the response is helpful, please click "Accept Answer" and upvote it.