Dear PowerApps Experts,
I need your help - I want to Filter a Gallery with dependency on Toggle value. I have 3 columns:
Expert Name (Person)
Specialization (Single Line of Text)
Hobby (Single Line of Text)
The list is filled with data about Expert and his Specializations and/or Hobby. Not every Expert has Hobby/Specialization value. Toggle value is "Specialization" - as false and "Hobby" - as true in toggle (Toggle1.Value).
I want to Filter a Gallery depending on toggle, that shows every Expert with Specialization (if he has this column filled), when I toggle to Hobby, it shows every Expertwith Hobby - if he has this column filled. Of couse most of Expert has both columns filled, so they should appear in both views.
My Items in Gallery looks like this - it worked only for Specialization, but I need to add this Hobby column and show it properly:
SortByColumns(
Filter(
AddColumns(
'Champions',
"PersonSort",
Last(ForAll(Split('Expert Name'.DisplayName," "), {Result: ThisRecord.Value})).Result
),
Active, TextSearchBox1.Text in Specialization || TextSearchBox1.Text in 'Expert Name'.DisplayName),
"PersonSort",
If(SortDescending1, SortOrder.Descending, SortOrder.Ascending)
)
Thank you in advance for your help!
@RandyHayes