Hello adminmca,
My problem is similar to yours and I am stuck.
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 leave in a power app 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... It brings the total leave as in Balance Leave.
Kindly assist.