Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Search in multiple choice field

(0) ShareShare
ReportReport
Posted on by 58

Hello everyone,

I would like to use a text input field as a search field for a multiple choice field in SharePoint. How do I have to set the syntax so that it can be searched?

 

Thanks in advance!

Categories:
  • Masakichi123 Profile Picture
    58 on at
    Re: Search in multiple choice field

    @WarrenBelz: Thanks for your help! 🙂

  • Verified answer
    WarrenBelz Profile Picture
    146,708 Most Valuable Professional on at
    Re: Search in multiple choice field

    @Masakichi123 ,

    The posed code is valid structure (it should be the code you posted inside the With() statement) - please re-check you have applied it properly and also if the spelling is correct. Another option on connectors is this

    With(
     {
     _Data:
     Filter(
     ’Mitarbeiter-Qualifikationen';
     (
    			Len(ComboBoxl.Selected.Result) = 0 || 
    			Level = ComboBoxl.Selected.Result
     ) &&
     (
     Len(ComboBox4.Selected.Result) = 0 || 
     Tit1e = ComboBox4.Selected.Result
     ) &&
     (
     Len(ComboBox3.Selected.Result) = 0 || 
     Anbieter = ComboBox3.Selected.Result
     ) &&
     (
     ( 
     Checkboxl.Value && 
     'Name Mitarbeiter'.Email = User().Email
     ) ||
     (
     !Checkboxl.Value && 
     !Checkbox2.Value
     ) || 
     (
     Checkbox2.Value && || 
     'Name Mitarbeiter'.Email = User().Email
     )
     )
     )
     },
     Filter(
     _Data;
     Txtsuche.Text in Stichwörter.Value
     )
    )

     

    Please click Accept as solution 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 giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

     

  • Masakichi123 Profile Picture
    58 on at
    Re: Search in multiple choice field

    @WarrenBelz : Thanks for your help!

    Unfortunately I get an error: He finds more arguments than he would like.

     

    Greetings

  • WarrenBelz Profile Picture
    146,708 Most Valuable Professional on at
    Re: Search in multiple choice field

    @Masakichi123 ,

    Firstly, please post your code in text (watch spelling on the code below) as it saves re-typing/OCR on this end.

    That is not an error - it is a Delegation warning as the in filter is not Delegable. You need to do something like this

    With(
     {
     _Data:
     Filter(
     ’Mitarbeiter-Qualifikationen';
     Len(ComboBoxl.Selected.Result) = 0 || Level = ComboBoxl.Selected.Result;
     Len(ComboBox4.Selected.Result) = 0 || Tit1e = ComboBox4.Selected.Result;
     Len(ComboBox3.Selected.Result) = 0 || Anbieter = ComboBox3.Selected.Result;
     (Checkboxl.Value && 'Name Mitarbeiter'.Email = User().Email) ||
     (!Checkboxl.Value && !Checkbox2.Value) || 
     (Checkbox2.Value && || 'Name Mitarbeiter'.Email = User().Email)
     )
     },
     Filter(
     _Data;
     Txtsuche.Text in Stichwörter.Value
     )
    )

     

    Please click Accept as solution 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 giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • Masakichi123 Profile Picture
    58 on at
    Re: Search in multiple choice field

    If I insert it as described above, the gallery is empty

  • Masakichi123 Profile Picture
    58 on at
    Re: Search in multiple choice field

    Hi @WarrenBelz ,

     

    Unfortunately I get an error here. 

    I'm trying to combine it with multiple combo boxes. There are also two text columns in which I would also like to search using the text input.

     

     

  • WarrenBelz Profile Picture
    146,708 Most Valuable Professional on at
    Re: Search in multiple choice field

    HI @Masakichi123 ,

    Something like 

    Filter(
     YourList,
     YourSearchText.Text in YourMultiChoiceField.Value
    )

     

    Please click Accept as solution 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 giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,708 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,030 Most Valuable Professional

Leaderboard