Oct 03 2020 05:11 PM
Have an app and want to filter data in column that is a "choice" field in SharePoint list. Made a dropdown box where Items = Choices(List.Column). The Dropdown displays all items in that column with no problem. However, cannot figure out the filter function for the gallery.
As far as I can get is: Filter(ListName,. Every combination that I try, the gallery returns blank.
Does anyone have any ideas?
Thanks!
Oct 03 2020 10:37 PM
Oct 04 2020 01:04 PM
Hey @chudson002 ,
look at Chris Webbs filter formula up here and enter this in the items event of your gallery.
Oct 04 2020 01:14 PM
Oct 04 2020 01:15 PM
@chudson002 ... and pls. give a thumbs up to us. Thanx.
Dec 16 2020 02:10 PM
@ChrisWebbTech I'm trying to do the same, but I'm getting an error. The intellisense is saying = is an invalid argument.
'Sponsoring Org' is the Choice Field in my list. Intellisense also prompted me to use result instead of value.
Any ideas if there'a a different issue with my list?
Filter('DIA/DRA', 'Sponsoring Org'= ComboBox5.Selected.Result) and
Filter('DIA/DRA', 'Sponsoring Org'= ComboBox5.Selected.Value) both give the error on =
Apr 26 2021 06:06 PM - edited Apr 26 2021 06:10 PM
The schema of a Choice column has two keys, ID (number) and Value (string). Since your Sponsoring Org column is of type Choice, it should be:
'Sponsoring Org'.Value
The reason is you're currently comparing an object to a string and because those data types don't match, that error is expected. Append .Value to your Choice column in your filter and now you're comparing a string to a string.
Nov 15 2021 05:30 AM
Apr 19 2022 08:03 PM
Apr 24 2022 01:10 PM
thanks, Eva for clarification.