This code fails:
Collect(colTickets, Filter(colSqlSiteVisitsTickets, ThisRecord.svID = svID));
Workaround 1:
With({SiteVisitID: svID},
Collect(colTickets, Filter(colSqlSiteVisitsTickets, svID = SiteVisitID))
);
Workaround 2:
UpdateContext({SiteVisitID: svID});
Collect(colTickets, Filter(colSqlSiteVisitsTickets, ThisRecord.svID = SiteVisitID));
I was expecting that using "ThisRecord" would point to the record in the "Filter" at question and PowerApps would know the other property was not from within the collection, but this is not the case.
Is there a better way of doing this instead of using one of the workarounds?