Hi ,
I want to calculate all the days that are being requested, including weekends. There is already a variable being defined, _inclusiveTotalDaysRequested .
I manged to add one leave type which calculates total days requetsed, but when am adding multiple leaves its giving error .
please assist
Hi @Anonymous,
Could you please share a bit more about the error message within your app?
Could you please show more details about your scenario?
Best regards,
Kris
Hi Kris,
Am trying to set few leave types which calculates only date difference , Lets say for example maternity and paternity , As per company policy eligible leaves are in calender days not working days .
I managed to setup Maternity by modifying the formulas in below areas,But when i add multiple leave types in with same formula am getting error.
NewRequestScreen -> GroupDateSelection -> OnSelect
If(Upper(_selectedLeaveType.type)<>"Maternity", Set(_requestedDays, _workDaysInRequest - _holidaysInRequest), Set(_requestedDays, _inclusiveTotalDaysRequested))
Then it is effectively checking if Maternity was selected, then we set _requestedDays to _inclusiveTotalDaysRequested.
HomeScreen -> GalleryRequests -> OnSelect
If(Upper(_selectedLeaveType.type)<>"Maternity", Set(_requestedDays, _workDaysInRequest - _holidaysInRequest), Set(_requestedDays, _inclusiveTotalDaysRequested))
Text property in NewRequstScreen -> GourpDateSelectio -> Label1_9
LookUp(RequesterBalanceCollection, Upper(type)=Upper(_selectedLeaveType.type), balance) - If(Upper(_selectedLeaveType.type)<>"Maternity", _requestedDays, _inclusiveTotalDaysRequested)
&
" days"
Regards,
Rahul Lal
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
177 | |
52 | |
41 | |
36 | |
27 |
User | Count |
---|---|
240 | |
81 | |
71 | |
69 | |
66 |