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 / Search (textinput1) fo...
Power Apps
Unanswered

Search (textinput1) for SQL date and decimal data types

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

All,

I'm trying to use a Search (textinput1) SQL date and decimal data types in a Gallery. Receiving an error Expect text type. For example: trying to Search Gallery1 for Processing Dates or Payment Amounts. Any help would be appreciated. Thank you

Categories:
I have the same question (0)
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    Search only works for text column, however you could use filter instead.

     

    I think this link will help you a lot:

    https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-filter-lookup

     

    Best Regards,

    Bof

  • timl Profile Picture
    37,283 Super User 2026 Season 2 on at

    @Anonymous 

    As @v-bofeng-msft  says search works only for text columns.

    If you want to use Search, my advice is to create a view that's based on your SQL table and to cast the date and decimal columns to nvarchar. That would enable you to call Search against those columns.

     

    The difficulty of using a single text input control and Filter is that you would need to determine what the user is entering and to convert the input into a date or number in your call to Filter. There's also more complexity involved in building a call to Filter so that it matches multiple columns against a single input value.

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