There are SO many articles on this topic and I feel like I've tried all of them to no avail. Hoping someone can help point me in the right direction.
I have a Sharepoint List ("Gamer Directory") with columns for: 'Gamertag / Handle' (Title), 'Name' (Person), 'System / Platform' (Choice), and 'Game(s) You Play' (Choice).
PowerApps auto-created the basic shell of what I want - a searchable directory from this list; but I want to add a dropdown to filter by 'System / Platform' (FilterPlatform) and another to filter by 'Game(s) You Play' (FilterGames) - along with the default search Name/Title. I've tried EVERYTHING...to no avail. My latest attempt was following the instructions in this thread; just trying to get ONE dropdown to work before tackling the second.
So I've got my App OnStart :
ClearCollect(AllChoices,{Value:"All"},Choices('Gamer Directory'.'Systems / Platforms'))
Which...to my understanding is taking all the choices from 'Systems / Platforms' in my list and placing them into a collection inapp.
The dropdown (FilterPlatform)'s Items is set to AllChoices. All this works - my dropdown is populated with a set of choices from my list (preceeded by 'All').
This is where things stop working - when my gallery's Items is set to:
If(
FilterPlatform.Selected.Value<>"All",
Filter([@'Gamer Directory'], StartsWith(Title, TextSearchBox.Text), 'Systems / Platforms'.Value = FilterPlatform.Selected.Value),
Filter([@'Gamer Directory'], StartsWith(Title, TextSearchBox.Text))
)
My gallery goes blank. In fact - PowerApps says this is wrong - citing specifically that the "=" in the 3rd line is an 'invalid argument'.
When I modify the the line to:
Filter([@'Gamer Directory'], StartsWith(Title, TextSearchBox.Text), "Systems / Platforms" = FilterPlatform.Selected.Value),
removing the .value from my column and putting the column title in double-quotes instead of single quotes - it validates AND works with 'All', but the moment you change it to any of the selections it returns no results.
My initial stabs at this had it pulling directly from the sharepoint list (no clear collect), but the issue seems to be a combination of my choice column, the populating of the dropdown list, and this one line triggering an 'invalid operator' warning because of the "=".
I'm stuck. Any advice? Seems like this should be simple....what am I missing?
