cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

drop down > gallery problem // plz help me

hi

 

why this problem occured? I copied the same tutorial on Microsoft's homepage .

I hope the item I chose from the drop-down will appear in that gallery.

 

dropdown 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Hi @hyunjin904 ,

Do you have problem in your filter function?

The reason why you met this problem is because of Distinct() function.

Distinct function will return a table with a field named Result.

So to use value that you select in the drop down, you should use formula like this: dropdownname.Selected.Result.

Try to set the gallery's Items like this:

Filter(Accounts, address1_city = Cities.Selected.Result)

 

 

 

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

3 REPLIES 3
Highlighted
Frequent Visitor

Hi @hyunjin904 ,

Try changing your items in the gallery to 

Filter(Accounts, address1_city = Cities.Selected.address1_city)

Hope this helps and if so please set as the solution.

Thanks.

Highlighted
Frequent Visitor

Insert a Button

OnSelect -> ClearCollect(Accounts,{address1_city:"seoul"},{address1_city:"dokdo"},{address1_city:"qyeong-gi"})

 

Insert DropDown

Items - > Accounts.address1_city

 

Insert Gallery

DataSource -> Accounts

Layout -> Title

Items - > Filter(Accounts,address1_city=Dropdown1.Selected.address1_city)

Highlighted
Community Support
Community Support

Hi @hyunjin904 ,

Do you have problem in your filter function?

The reason why you met this problem is because of Distinct() function.

Distinct function will return a table with a field named Result.

So to use value that you select in the drop down, you should use formula like this: dropdownname.Selected.Result.

Try to set the gallery's Items like this:

Filter(Accounts, address1_city = Cities.Selected.Result)

 

 

 

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

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

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (8,645)