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 / Filter A Gallery by mu...
Power Apps
Answered

Filter A Gallery by multiple Criteria

(0) ShareShare
ReportReport
Posted on by 25

I have tried using this code that worked when I was connecting to SQL but it's not working now that I have changed the data source to Sharepoint list

can anyone help?

 

SortByColumns(Filter(
Search(
'[dbo].[M_qryStreetListWeb]_1',
Textinput1.Text,
""EnrollmentAreaID=cboEnrollmentArea.Selected.EnrollmentAreaID"",
),
"SI",
If(
SortDescending1,
Descending,
Ascending
)
)

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    154,399 Most Valuable Professional on at

    Hi @Tayohpeter ,

    What field are your wanting to Search as well as the drop-down selection and what is your Search control name, or do you just want to filter on the drop-down like this

    SortByColumns(
     Filter(
     '[dbo].[M_qryStreetListWeb]_1',
     EnrollmentAreaID = cboEnrollmentArea.Selected.EnrollmentAreaID
     ),
     "SI",
     If(
     SortDescending1,
     Descending,
     Ascending
     )
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • Tayohpeter Profile Picture
    25 on at

    I want to search the SI field,

    As seen in the image if I select an area all the SI tied to the area which is like what is typed would be displayed

    AppSoln.JPG
  • Verified answer
    WarrenBelz Profile Picture
    154,399 Most Valuable Professional on at

    @Tayohpeter ,

    Assuming you are using SQL here (add your Text Contol name)

    SortByColumns(
     Filter(
     '[dbo].[M_qryStreetListWeb]_1',
     EnrollmentAreaID = cboEnrollmentArea.Selected.EnrollmentAreaID &&
     YourTextBoxName.Text in SI
     ),
     "SI",
     If(
     SortDescending1,
     Descending,
     Ascending
     )
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 94

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard