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 a Number Column...
Power Apps
Unanswered

Search a Number Column via Search Bar/Drop Down

(0) ShareShare
ReportReport
Posted on by 185

I have a gallery that is really just a bone structure right now, but I want to be able to either search a number column or have a dropdown. I created a dropdown that displays the numerical values in that column, however, it's not working. I presume it's because it is not a choice column. I did not create the datasource, so the title of the column is three words, and in the URL it is one, but it is pulling into power apps as three words. For example: 

 

URL: TodayIsMonday

Power Apps: 'Today Is Monday' 

 

I tried this formula: 

 

Search(Filter(List, IsBlank (DD.Selected) || Column.Value = DD.Selected.Value), SearchBar.Text, "TodayIsMonday") 

 

Any suggestions? 

Categories:
I have the same question (0)
  • Ami K Profile Picture
    15,679 Super User 2024 Season 1 on at

    @gjbannister01 - I think what you're trying to say is that the "Display Name" of the column and the "Logical Name" of the column are different. 

     

    Amik_0-1696257550546.png

     

     

    image ref: https://learn.microsoft.com/en-us/power-platform/power-fx/reference/operators 

     

    I assume your data source is SharePoint? Could you confirm what the field type is for that field (e.g. Single Line Text, Number).

  • gjbannister01 Profile Picture
    185 on at

    That's correct. It is a number column.

  • Verified answer
    Ami K Profile Picture
    15,679 Super User 2024 Season 1 on at

    @gjbannister01 - the Search function expects a search string.

     

    Given your column is a number data type, you will need to use the AddColumns function to create a "virtual" copy of that column but converted as text.

     

    You can then run your search against that virtual column instead:

     

    Search(
     AddColumns(
     'Your Data',
     "_number_column_text",
     Text('Your Number Column')
     ),
     DD.Selected.Value,
     "_number_column_text"
    )

     

    For a Text Input Box, simply replace DD.Selected.Value with:

     

    Search(
     AddColumns(
     'Your Data',
     "_number_column_text",
     Text('Your Number Column')
     ),
     'Your Text Input Box'.Text,
     "_number_column_text"
    )

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard