cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ChadBishop
Frequent Visitor

Best-Match Search by Number (not Text)

Relative beginning with PowerApps and I'm wondering if anyone has a solution for searching by number and allowing for best-match results? 

My search box looks at number field within the BrowseGallery.
The formula in the BrowseGallery: 
SortByColumns(Filter([@BetaData],StartsWith(Text(SomeNum),TextSearchBox1.Text)),"SomeNum",If(SortDescending1,Descending,Ascending))


Here is a screen shot of my data

ChadBishop_1-1613668655403.png

 

Searching for the matching number BOLD number works as expected. As I type "1001" the gallery begins to filter. 

ChadBishop_2-1613668723017.png

 

What I'd like to accomplish is also having the ability to search for a portion of that number (i.e. "1313). 

ChadBishop_3-1613668782385.png


Is this possible? If so, can you provide details of how you solved it? 

1 ACCEPTED SOLUTION

Accepted Solutions
Drrickryp
Super User II
Super User II

Hi @ChadBishop 

Try

 

SortByColumns(
               Filter(
                       [@BetaData],TextSearchBox1.Text in SomeNum
                ),"SomeNum",If(
                                SortDescending1,Descending,Ascending
                             )
)

This will give you a delegation warning so you will need to consider other approaches if your list exceeds the maximum number of items allowed (500 default, 2k max).

 

View solution in original post

2 REPLIES 2
Drrickryp
Super User II
Super User II

Hi @ChadBishop 

Try

 

SortByColumns(
               Filter(
                       [@BetaData],TextSearchBox1.Text in SomeNum
                ),"SomeNum",If(
                                SortDescending1,Descending,Ascending
                             )
)

This will give you a delegation warning so you will need to consider other approaches if your list exceeds the maximum number of items allowed (500 default, 2k max).

 

View solution in original post

ChadBishop
Frequent Visitor

@Drrickryp Delegation warning understood. 
Your recommendation appears to have solved my issue. It gives me results for searching "10013" as well as "1313". 

Thank you

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (2,126)