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 / Multiple choice column...
Power Apps
Answered

Multiple choice column + Combobox filter + TextInput filter

(0) ShareShare
ReportReport
Posted on by 48

Filter a multiple choice column in a SharePoint list. The first filter is the Combobox1. After the first filter via Combobox the second is a SearchBar called "TextInput1" that filter inside the first choose via Combobox but by the name that is another SP column

 

Try this code but with no results.

 

Inside the gallery "Gallery1":

 

Filter(
 SPlist;
 Index(ComboBox1.SelectedItems; 1) in MultipleChoiceColumn Or IsBlank(Index(ComboBox1.SelectedItems; 1));
 Index(ComboBox1.SelectedItems; 2) in MultipleChoiceColumn Or IsBlank(Index(ComboBox1.SelectedItems; 2));
 Index(ComboBox1.SelectedItems; 3) in MultipleChoiceColumn Or IsBlank(Index(ComboBox1.SelectedItems; 3));
 Index(ComboBox1.SelectedItems; 4) in MultipleChoiceColumn Or IsBlank(Index(ComboBox1.SelectedItems; 4));
 Index(ComboBox1.SelectedItems; 5) in MultipleChoiceColumn Or IsBlank(Index(ComboBox1.SelectedItems; 5));
 Index(ComboBox1.SelectedItems; 6) in MultipleChoiceColumn Or IsBlank(Index(ComboBox1.SelectedItems; 6));
 Index(ComboBox1.SelectedItems; 7) in MultipleChoiceColumn Or IsBlank(Index(ComboBox1.SelectedItems; 7))
)

 


Inside the ComboBox1:

 

Choices('SPlist'.MultipleChoiceColumn)

 

imagem_2024-04-27_004611628.png
imagem_2024-04-27_004425629.png
Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,969 Most Valuable Professional on at

    Hi @powerapps2024 ,

    Try this (using your other column name)

    With(
     {
     _Data:
     Search(
     SPList;
     TextInput1.Text;
     OtherColumnHere
     )
     };
     If(
     Len(ComboBox1.Selected.Value) = 0;
     _Data;
     Ungroup(
     ForAll(
     ComboBox1.SelectedItems As _Items;
     Filter(
     _Data;
     _Items.Value in MultipleChoiceColumn.Value
     )
     );
     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

  • powerapps2024 Profile Picture
    48 on at

    Hi @WarrenBelz!

     

    Thanks for your reply!

     

    Gallery1 is blank.

     

    The first "With" function has the error: "Invalid number of arguments: 3 received, 2 expected."

     

    The first and second "_Data;" should not be "_Data:" ? In this situation the function with Invalid arguments will be "

    Search"
  • WarrenBelz Profile Picture
    156,969 Most Valuable Professional on at

    @powerapps2024 ,

    Yes, typing error at the top - now fixed. You may not need quotes around your other field name in the Search or Value at the bottom due to some recent changes in Power Apps.

  • powerapps2024 Profile Picture
    48 on at

    @WarrenBelz ,

     

    Now the problem becomes the "Search" function has the error: "Invalid arguments". Indicating the text "OtherColumnHere".

     

    Also "Ungroup" function has the error: "Invalid number of arguments: 1 received, 2 expected.".

     

    What if after the SPList be a , (comma) instead a ; (semicolon) ?

  • Verified answer
    WarrenBelz Profile Picture
    156,969 Most Valuable Professional on at

    @powerapps2024 ,
    Rather than having multiple versions, I will update the code I posted. Due to some recent syntax changes that seem to be rolling out to different regions at different times, it is difficult to know which version you are working with. The main areas will be whether you need quotes "" or not around OtherColumnHere (with your actual column name) and Value at the bottom.

    Please note that the structure is correct - the values just need to be sorted out.

  • powerapps2024 Profile Picture
    48 on at

    Worked! Awesome!

     

    Thank you so much @WarrenBelz !

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 139

Last 30 days Overall leaderboard