Hello
I'm finishing building a leave request application using PowerApps for Teams. Here, the users from a Office365Users work group can make their requests and a manager can review and approve or reject them.
I have one table (REQUESTS) that records all the requests, and other (USERS_DATA) that keeps record of each user and how much leave time he has left ([remaining_time]). The approved requests subtract to the remaining_time field.
The USERS_DATA table also has a field that records the current year: what I need to do now is to set the unused leave time when the year ends, reset the inicial leave time when a new year starts, and add any excedent time from the year prior (for example, if the user has 20 leave days at the start of 2021 and by the end of the year still has 2 days left, at the beginning of 2022 he should have 22 days total [2 from 2021 and 20 from 2022]).
Any idea how to do this? Thank you.