Hi, I'm pretty new to PowerApps, but have managed to get a gallery displaying in a canvas app to show items from a SharePoint online list, and to filter that down based on some other inputs. The list is displaying assessments for a set of risks, and I'd like to make it so that each risk only appears once for each location, showing the most recent assessment date and the assessment status on that date.
This is what I've currently got on the items property of the gallery
Filter('Compliance',Site.Value = SiteDropdown.SelectedText.Value && 'Risk:SectionText'.Value = RiskSectionDropdown.SelectedText.Value && (ComplianceLevel.Value in (CompList.SelectedItems.Value) Or (IsEmpty(CompList.SelectedItems.Value))))
The date field I want to use is called 'Assessment date' (and yes I regret that space in the field name)
So I'd like to add a condition to the filter that says something like "&& assessment date = [the latest assessment date for that Risk/Site]" - where both Risk and Site are lookup fields in the SharePoint list. Is this possible/is there another way to achieve the desired outcome?