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 / I am trying to add a s...
Power Apps
Answered

I am trying to add a search function on a gallery from a table that has different datatypes.

(0) ShareShare
ReportReport
Posted on by 50

I have this table explained below:

 

Title of ColumnType of Column
ID (pk)text
Machine HostNamelookup
CVE IDlookup
State

choice

 

While having this simple gallery to show these fields:

AlvinCassar_0-1692796925075.png

 

Id: 

AlvinCassar_1-1692796943269.png

 

Machine HostName:

AlvinCassar_2-1692797006169.png

 

CVE ID:

AlvinCassar_3-1692797017632.png

 

State:

AlvinCassar_4-1692797027454.png

 

Using the code below, I have managed to add a search function for the ID but not for the rest. What would be a viable change to make this work?

AlvinCassar_5-1692797103650.png

 

 

Categories:
I have the same question (0)
  • ZNK Profile Picture
    24 on at

    Hi,

     

    Have you tried by adding the columns in your search function? 

    Search('Vulnerability Tables', TextInput2.Text , "cr667_id", "Machine hostname column", "another column", ...)
  • AlvinCassar Profile Picture
    50 on at

    I have already tried that solution but it does not work. 

     

    AlvinCassar_0-1692798343015.png

     

  • ZNK Profile Picture
    24 on at

    I'm afraid it won't work in this way because of the lookup columns. The search function can only use a single string to match values. 
    You could maybe try to save the lookup value in another column (as text and not as a lookup or record) so that you can use this column for your search function.

  • Verified answer
    LaurensM Profile Picture
    12,516 Moderator on at

    Hi @AlvinCassar,

     

    As long as your table that you would like to search does not exceed your Data Row Limit (default 500, Max 2000), you can use the following non-delegable alternative:

    Filter(
     'Vulnerability Tables', 
     TextInput2.Text in ID || TextInput2.Text in 'Machine HostName'.'Machine HostName' || TextInput2.Text in 'CVE ID'.'CVE ID'
    )

     

    If this solves your question, would you be so kind as to accept it as a solution & give it a thumbs up.

    Thanks!

  • Verified answer
    AlvinCassar Profile Picture
    50 on at

    Hi thank you very much,

     

    Is there a way to make this work with over 2000 rows?

    Thanks.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard