web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Search or Filter aren'...
Power Apps
Answered

Search or Filter aren't working on my SP list

(0) ShareShare
ReportReport
Posted on by 4

Hi all,

 

I'm trying to list a gallery based on a choice made by the user on a screen earlier.

 

The user has to choose a number and then submit that number as so:

PrintsAjuda.PNG

 

Then what i want the app to do, is list in a gallery all of the items that have te same number in a collumn named 'UQE 1'.

 

PrintsAjuda1.PNG

 

Right now i'm able to return the number from the Combo Box through the collection.

 

But i want the gallery to show the items that have that number that was chosen before, and i cant do that in anyway.

 

Hope i made myself clear, sorry for any misspells or any grammar errors.

 

Best Regards,

André Santos

Categories:
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @AndreS3 

    Try to change the formula in your Items property of the Gallery to the following:

    Filter(Registos, 'UQU 1'= yourComboBox.Selected.Value)

    Replace "yourComboBox" with the name of your selection combobox and the above formula should give you what you want.

     

    I hope this is helpful for you.

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi  @AndreS3 ,

    Do you want to display items depending on your collection(Escolha)?

    Can you tell me whether the data type of field in combo box the same as the data type of 'UQU 1' in your data source?

    I assume the field in combo box and  'UQU 1' is the same data type.

    I’v made a test for your reference:

    I more suggest you not use collection, you could directly use “ComboBox1.Selected.Value” to represent your selection of combo box.

    Case1:Not use collection.

    Add a gallery control and set it’s items property to:

    Filter(Test2,'UQU 1' = ComboBox1.Selected.Value) /*Test2 is my data source*/ 

    What’s more, I notice that maybe you use “;” as “,” in your region, so you could try this:

    Filter(Test2;'UQU 1' = ComboBox1.Selected.Value)

    Case2:Use collection.

        Step1:set the button’s OnSelect property to:

     ClearCollect(Escolha,ComboBox1.Selected.Value)

        you could try this:

     ClearCollect(Escolha;ComboBox1.Selected.Value)

        Step2:Add a gallery control and set it’s items property to:

    Filter(Test2,'UQU 1'in Escolha)

    You could try this:

    Filter(Test2;'UQU 1'in Escolha)

    Please notice that: if you use ClearCollect(), you could only filter items based on your one time choice in combo box.

    If you want to filter items based on all of the historical selection, I suggest you use Collect() function to save the selection of Combo box.

    Collect(Escolha,ComboBox1.Selected.Value)

     

     

    Best regards,

    Bof

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 337 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 250

#3
Mohsin Ali Profile Picture

Mohsin Ali 225

Last 30 days Overall leaderboard