I would like to add a pop up to a time recording app which flags when a user has manually inputted more than 8 hours worth of time in one day.
I need to filter my collection(all entries) based on the users name, and the date being selected in the manual time recording screen to look at the already recorded times (task duration) for them and add on to this the new time they are recording (TxtTotalTime), in order to then flag up a message stating "You have recorded over 8 hours today" Below is my current failed attempt:
Label Text:
If(Sum(Filter(AllEntries, 'AgentID' = NamePicker_2.Selected.UserPrincipalName && 'StartTime' = DateTimeValue(Text(StartDate.SelectedDate))), Text(
Value(TaskDuration)+ TxtTotalTime.Text)) >= 541, "You have recorded over 8 hours today")