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 / Searching multiple col...
Power Apps
Answered

Searching multiple columns

(2) ShareShare
ReportReport
Posted on by 22
Hi, I have used this forum before and thanks for your responses. In my powerapp, I am trying to search more than one field in the gallery. The text box has the following item function:
 
SortByColumns(Filter([@MCN_Plants5], StartsWith(Species, TextSearchBox1.Text)) , "Title", If(SortDescending1, SortOrder.Descending, SortOrder.Ascending))
 
What formula do I use to search for another field entitled 'Çommon Name' without delegation warning please?
 
Thanks,
 
John.
Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    155,838 Most Valuable Professional on at
    Assuming you are using the same search box
    SortByColumns(
       Filter(
          [@MCN_Plants5], 
          StartsWith(
             Species, 
             TextSearchBox1.Text
          ) ||
          StartsWith(
             'Çommon Name', 
             TextSearchBox1.Text
          )
       ), 
       "Title", 
       If(
          SortDescending1, 
          SortOrder.Descending, 
          SortOrder.Ascending
       )
    )
    
     
    Please ✅ Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like ♥
    Visit my blog
    Practical Power Apps    LinkedIn  
  • Suggested answer
    11manish Profile Picture
    3,333 on at
    You can also try below :
     
    Sort(
        Search(
            [@MCN_Plants5],
            TextSearchBox1.Text,
            "Species",
            "Common Name"
        ),
        Title,
        If(SortDescending1, Descending, Ascending)
    )
  • Verified answer
    oyepanky Profile Picture
    537 on at
    Hi @JC-18030151-0
     

    To search multiple fields without a delegation warning, you can extend your Filter + StartsWith like this. 


     
     
    SortByColumns(
        Filter(
            [@MCN_Plants5],
            StartsWith(Species, TextSearchBox1.Text) ||
            StartsWith('Common Name', TextSearchBox1.Text)
        ),
        "Title",
        If(SortDescending1, SortOrder.Descending, SortOrder.Ascending)
    )

    Pankaj J
    24/7 Support Free

    Power Platform Developer
    📧 Oyepanky@gmail.com
    📞 +91 9315839512
    🎥 https://www.youtube.com/@oyepanky

     

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard