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 / Searching by ID based ...
Power Apps
Answered

Searching by ID based on SQL data

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello! I am trying to get the text input box in Capture2 to have functionality that will enable it to search for a specific UserID within the gallery in the screenshot capture below. So for example if I typed the number 14 into the text input I would want the gallery to display only the data associated with UserID 14. However I have been unable to figure out how to go about doing this

Capture2.JPG
Capture.JPG
Categories:
  • Verified answer
    timl Profile Picture
    37,424 Super User 2026 Season 2 on at

    Hi @Anonymous 

    You would do this by calling the filter function.

    This is the formula that you would use to set the items property of the gallery control.

     

     

    Filter('[dbo].[YourTable]', 
     AtheleteID=Value(txtSearchBox.Text)
    )
    

     

    There are more details on the filter function here
    https://docs.microsoft.com/en-gb/powerapps/maker/canvas-apps/functions/function-filter-lookup

     

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 221 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard