I'm trying to change an icon on a gallery item representing information in one table depending on form entries for another table and running into 'This formula uses scope, which is not presently supported for evaluation.'
The gallery displays a list of projects from a project table, and the form links to a list of updates for those projects in a project update table. When the projects are updated by the current user for this week in the gallery, I want the checkmark to be visible.
I used a complex if statement, and while it doesn't throw a syntax error, I do get the scope error of death. I put the formula on the Visible option for the icon itself and is as follows:
If(ThisItem.Name in 'Project Updates'.Project, true, false)
And If(currentUser.FullName in 'Project Updates'.'Created By'.'Full Name', true, false)
And If(DateAdd(Today(),6-Weekday(Today(),1),Days) in 'Project Updates'.'Week Ending', true, false)
The weird thing is that the last if statement evaluates correctly, the middle one does not evaluate correctly, and the first throws the scope error of death.
Any help would be much appreciated.