I'm working on an app with 2 galleries connected to the same Sharepoint list. The list has a Title column that I use to filter the data in each gallery, using this formula:
Filter('My data source', StartsWith(Title,"Resid"))
Filter('My data source', StartsWith(Title,"Comm"))
I'm using StartsWith because the data in the Title column is an ID that contains numbers at the end. (Such as Residential_1, Residential_2, Community_1, Community_2, etc.). I need the data to be filtered by Titles that start with Resid or Comm.
What I'd like to do is consolidate the two galleries into a single gallery, with two radio buttons beside it that are labeled "Residential" and "Community." When the Residential button is selected, the gallery is filtered by all the Titles that start with "Resid". When the Community button is selected, the gallery is filtered by all the Titles that start with "Comm."
Any suggestions would be appreciated. Thanks!