My first post. I hope I can get some help.
I have a gallery that shows a customer list (Customers). The list shows the customer name and the category, such as Education, Gov, Finance...
The Category field or column is a choice when adding a record.
What I want is to filter all my customers according to a category. I followed the brilliant Shane Young tutorial here (https://www.youtube.com/watch?v=kLGglidmPxg).
I inserted a dropdown, and I select Customers for Items, but when I want to select Category in the Value dropdown I do not see it. I see all the other fields, except Category and Country which is also a field with type Choice. Where have I gone wrong?
BTW, I am super new to PowerApps.
Thanks.
Solved! Go to Solution.
Hi @MrClick ,
Do you want to filter your list based on the selection of Category field in the drop down?
I see you set the drop down's Items to your listname directly.
The reason why you could not choose Category field as the drop down's Value is because that you could only choose simple data type field as the drop down's Items.
For complex data type (lookup field, choice field, person field), you need to set the drop down's Items by using Choices() function.
Please set like this:
1)drop down's Items:
Choices(Customer.Category)
drop down's Value: Value
2)gallery's Items( display filtered items based on the selection of Category in the drop down)
Filter(Customer,Category.Value=DropDown1.Selected.Value)
Best regards,
Hi @MrClick - I am not sure I follow what you're doing here. maybe share some screenshots so we can better understand what you're doing.
Thanks for reply @cchannon
Check the image attached. At the value dropdown option, I do not see my Category field. I see other fields. I also do not see the Country field. Both fields are of type Choice when I created the list.
What's your data source - CDS?
Check your Data Source properties to make sure these columns are mapped there and that their types are correctly noted as Optionset
My data source is a Sharepoint List. I can view the Category and the Country in my Gallery. I just cannot see them in the Value below the Item as per the screenshot.
Try using ComboBox instead of Dropdown.
I did try. Same problem. It is very frustrating.
Hi @MrClick ,
Do you want to filter your list based on the selection of Category field in the drop down?
I see you set the drop down's Items to your listname directly.
The reason why you could not choose Category field as the drop down's Value is because that you could only choose simple data type field as the drop down's Items.
For complex data type (lookup field, choice field, person field), you need to set the drop down's Items by using Choices() function.
Please set like this:
1)drop down's Items:
Choices(Customer.Category)
drop down's Value: Value
2)gallery's Items( display filtered items based on the selection of Category in the drop down)
Filter(Customer,Category.Value=DropDown1.Selected.Value)
Best regards,
Stay up tp date on the latest blogs and activities in the community News & Announcements.
Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
User | Count |
---|---|
198 | |
172 | |
62 | |
33 | |
32 |
User | Count |
---|---|
339 | |
271 | |
105 | |
71 | |
58 |