cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper I
Helper I

Filter via dropdown

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.  

 

1 ACCEPTED SOLUTION

Accepted Solutions

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,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

7 REPLIES 7
Resolver I
Resolver I

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. 

 

powerappss.png

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,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (6,878)