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 / create multi search bo...
Power Apps
Unanswered

create multi search box for each column in one gallery

(0) ShareShare
ReportReport
Posted on by 14

Hi guys

I'm newbie in powerapps.

I'd like to create 3 search input box for each columns in one gallery. I've tried to input in 'items' as follow:

 

Search(Table1,KodeSearch.Text,"Kode")|| Search(Table1,DescSearch.Text,"OJK")||

Search(Table1,ExampleSearch.Text,"example")

 

 but it's not working.

 

need your assistance to solve it.

 

thanks in advance

Categories:
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @amel0410 

    What about one search box for all 3 columns?

  • amel0410 Profile Picture
    14 on at

    I want user can search specific key word based on the specific data in each column.

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Will more than one search box be used at one time?

  • amel0410 Profile Picture
    14 on at

    Nope, only one text box will be used in one time searching

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @amel0410 ,

    If you want multiple Search Boxes for different Columns, if Kode, OJK, example refers to columns in Table1 then,

    Filter(Table1,(KodeSearch.Text in Kode) || (DescSearch.Text in OJK) || (ExampleSearch.Text in example)).

     

    If you want single search box for multiple columns then refer below formula,
    SortByColumns(
    Filter(
    'CM_Contracts Management',
    StartsWith(
    'Contract No.',
    InpSearch_1.Text
    ) || (InpSearch_1.Text in 'People'.DisplayName)
    ),
    "Created",
    If(
    SortDescending,
    Ascending,
    Descending
    )

    // Use Sort icon to sort the gallery record and OnSelect of it apply "UpdateContext({SortDescending: !SortDescending})" to toggle sort function.

    Refer below code,

    SortByColumns(
     Filter(
     'CM_Contracts Management',
     StartsWith(
     'Contract No.',
     InpSearch_1.Text
     ) || (InpSearch_1.Text in 'People'.DisplayName)
     || StartsWith(
     ContractType.Value,
     InpSearch_1.Text
     ) || StartsWith(
     Mandant.Value,
     InpSearch_1.Text
     ) || StartsWith(
     Department.Value,
     InpSearch_1.Text
     ) || StartsWith(
     Active.Value,
     InpSearch_1.Text
     ) || StartsWith(
     ContractingCompany.Value,
     InpSearch_1.Text
     ) || StartsWith(
     ShortDescriptionContat,
     InpSearch_1.Text
     ) || StartsWith(
     Subcontracts,
     InpSearch_1.Text
     ) || StartsWith(
     ExternalContact,
     InpSearch_1.Text
     ) || StartsWith(
     SignDate,
     InpSearch_1.Text
     ) || StartsWith(
     StartContract,
     InpSearch_1.Text
     )
     || StartsWith(
     'Created By'.DisplayName,
     InpSearch_1.Text
     )
     || StartsWith(
     OneTimeCosts,
     InpSearch_1.Text
     )
     || StartsWith(
     CostPerPeriod,
     InpSearch_1.Text
     )
     ),
     "Created",
     Descending
    )

     

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at
    Search(
     Table1,Coalesce(
     KodeSearch.Text,
     DescSearch.Text,
     ExampleSearch.Text
     ), "Kode","OJK","example"
    )
    
     
  • timl Profile Picture
    37,287 Super User 2026 Season 2 on at

    @amel0410 
    On the basis that you want to perform partial matches on multiple columns, based on separate search criteria for each column, I would say that @Anonymous's post is the correct answer here.

     

    Filter(
     Table1,
     KodeSearch.Text in Kode||
     DescSearch.Text in OJK ||
     ExampleSearch.Text in example 
    )
    
  • amel0410 Profile Picture
    14 on at

    where control should I put this function?  I put under 'items' is not working

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

    Items is the correct place. When you say it's not working, do you mean it's not returning the expected records, or are you receiving an error message?

  • amel0410 Profile Picture
    14 on at

    not returning the expected records.. it's blank result.

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
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard