cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
lpr
Level: Powered On

Items of combobox/dropdown which filter Gallery

Hello,

 

1. question:

There is a sp list which has a field named "users" that pick up users.

Need a dropdown or combobox to filter the gallery in powerapps which its item has to be the distinct records of "users" field.

so while filtring, i can filter by "dropdown.selected.Email.

need assistance for the item.

 

 

2. question:

I got an assistance from here

 

as question 1, i want to put a filter for the customer-projects that will have ID to filter the gallery.

 

 

Thanks

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Items of combobox/dropdown which filter Gallery

Hi @lpr ,

 

In that case, change your formulas to:

 

Distinct(ListName,User.DisplayName)

 

Filter(ListName,  Dropdown1.Selected.Result in User.DisplayName)

 

Regards,

Mona

Community Support Team _ Mona Li
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

8 REPLIES 8
Super User
Super User

Re: Items of combobox/dropdown which filter Gallery

@lpr 

Question #1

Is your Users column a Person/Group type?  If so, I believe you can achieve your goal with the help of a ComboBox and the FILTER function.  First, create a new ComboBox with the following properties

 

Items: [@your_SPlist_name].Name
DisplayFields: ["Email"]
SearchFields: ["DisplayName","Email"]
IsSearchable: true

 

Then put this code in the Items property of your Gallery.

 

Filter(your_datasource_name,SPemailColumnName in ComboBox1.SelectedItems)

 

Question #2:

It is unclear what you want here.  What column type is customer projects in SP?

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

lpr
Level: Powered On

Re: Items of combobox/dropdown which filter Gallery

q #1:

 

column type is just person type.

When i type the listname.column name as for item, at the combobox property, there is no choice to display email or displayname.

it is not working

 

q #2:

i will ask in another post

Super User
Super User

Re: Items of combobox/dropdown which filter Gallery

Can you find either of the properties DisplayName or Email when typing [@your_sp_list_name]. into the Items property?  If the answer is no, can you please try refreshing your datasource?

lpr
Level: Powered On

Re: Items of combobox/dropdown which filter Gallery

although database refreshed, nothing found.

Community Support Team
Community Support Team

Re: Items of combobox/dropdown which filter Gallery

Hi @lpr ,

 

Insert a dropdown control and set its Items property to:

Distinct(ListName,User.Email)

And set the Items property of your gallery to:

Filter(ListName,  Dropdown1.Selected.Result in User.Email)

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
lpr
Level: Powered On

Re: Items of combobox/dropdown which filter Gallery

set item as "splist.user" or "[@splist].user

i can not get anything for the combobox field property.

lpr
Level: Powered On

Re: Items of combobox/dropdown which filter Gallery

the formula is ok but this time, emails are displayed. i want to display the name.

 

Community Support Team
Community Support Team

Re: Items of combobox/dropdown which filter Gallery

Hi @lpr ,

 

In that case, change your formulas to:

 

Distinct(ListName,User.DisplayName)

 

Filter(ListName,  Dropdown1.Selected.Result in User.DisplayName)

 

Regards,

Mona

Community Support Team _ Mona Li
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
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (9,591)