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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Search Gallery with Nu...
Power Apps
Answered

Search Gallery with Number

(0) ShareShare
ReportReport
Posted on by

Search('Table', TextSearchBox1.Text, "IDNumber")

 

Is there a way to Search for a number in a Gallery? Attempting to use a field in my Search that is a Number format just seems to lead to a error.

Categories:
I have the same question (0)
  • Verified answer
    Sienna Profile Picture
    1,532 on at

    You can search only for text. you can either format the number to text

     Search('Table', Text(TextSearchBox1.Text), Text(IDNumber))

    Or use filter instead

  • Community Power Platform Member Profile Picture
    on at

    Issue is Text(IDNumber) doesn't work. It says Text has a invalid value.

  • Sienna Profile Picture
    1,532 on at

    Can you try Text(TableName.IDNumber)

    What datasource are you using? Sharepoint?

  • Community Power Platform Member Profile Picture
    on at

    No luck. Invalid argument again. I am using CDS (Common Data Service).

  • Sienna Profile Picture
    1,532 on at

    Never tried that. Any chance to use Filter instead?

     

    Filter('Table', Value(TextSearchBox1.Text) = IDNumber)

  • Community Power Platform Member Profile Picture
    on at

    Was hoping to use Search for this specific part... but if it isn't possible not a lot can be done. I'll slot this into my existing Filter

  • Sienna Profile Picture
    1,532 on at
    One of the option how you can achive to use search is to collect your datasource into a collection and search in the collection. Need a help doing that?
  • evalindag Profile Picture
    117 on at

    Hi @Sienna 

    I have made a collection and am now trying to search in that collection. Can you help me? 🙂

     

    Best regards

    Eva

  • sadjei Profile Picture
    22 on at

    Another solution is to first create a custom column in your dataset using the AddColumns function, that converts that number field to text, then you can search on it. 

    Search( AddColumns('Table', "MyTextCol", Text(IDNumber)), TextSearchBox1.Text, "MyTextCol")

     

  • Ruben-Ruiz Profile Picture
    26 on at

    Hi, try this:

     

    Property Items in your gallery component: 

     

    Search(
    AddColumns(colYourTable, "IDSearch", Text(IDNumber)),
    TextSearchBox1.Text,
    "IDSearch"
    );

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard