web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Leave Request template...
Power Apps
Unanswered

Leave Request template with Sharepoint- Leave balance

(0) ShareShare
ReportReport
Posted on by 2

I have developed the PowerApps template patched to a SharePoint list and there's a problem. I have seen others with similar problems but not really addressing mine. 

 

I have two SharePoint Lists: BalanceLeave and LeavesAppliedByUser. The BalanceLeave holds all the types of leaves ( Annual Leave, Sick Leave, Casual Leave etc.. and the number of days). The LeavesAppliedByuser has  all leaves application made by users. So basically I want to display the balance of the leave applied on PowerApps screen. 

 

Below is my formula. 

 

Sum(Filter(BalanceLeave,LeaveId=ThisItem.LeaveId),Total_Leave) - Sum(Filter(LeavesAppliedByUsers,LeaveId.Value=ThisItem.LeaveId && RequestedBy.Email=User().Email),TotalDays) & " Days".

At the moment, this formula doesn't deduct from the total leave days... The total leave balance never changes as i create leave requests.

 

Thanks for your help always 

 

Kindly assist. 

Categories:
I have the same question (0)

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard