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 / Filter gallery based o...
Power Apps
Answered

Filter gallery based on multiple choice columns

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

 

I need to filter the data table "LCP." This table has multiple columns with the data type "Choices," allowing for multiple selections.

I have a ComboBox that takes the selection options "Web," "Mobile," "Workflow" from the column "Application." For example, if I choose the options "Web" and "Mobile" in the ComboBox, only the data should be displayed where both "Web" and "Mobile" are selected (intersection), not the data where either "Web" or "Mobile" is selected. The same applies when all three options are selected. Only the ones that offer all three options should be displayed in the gallery.

 

This is the filter I currently have, but unfortunately, it's not working:

Filter(LCP, cbApplication.Selected.Value in Application.Value);

 

 

Categories:
  • Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @Anonymous ,

     

    If your Choice field in SharePoint is not set to "Allow multiple selections" and your Combo Box has been set to allow multiple selections:

     

     

    Filter(
     LCP,
     CountRows(cbApplication.SelectedItems) = 0 || Application in cbApplication.SelectedItems
    )

     

     

    If Choice field in SharePoint has been set to "Allow multiple selections" and your Combo Box has been set to allow multiple selections (not delegable):

     

     

    If(
     CountRows(cbApplication.SelectedItems) = 0,
     LCP,
     Ungroup(
     ForAll(
     cbApplication.SelectedItems As _selections,
     Filter(
     LCP,
     _selections.Value in Application.Value
     )
     ),
     "Value"
     )
    )

     

     

    ------------------------------------------------------------------------------------------------------------------------------

     

    If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution.

    If you like my response, please give it a Thumbs Up.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @Amik 

     

    Thanks for your response, but unfortunately, it doesn't work. It still gives me the data if at least one option of the ComboBox matches, and not all of them.

  • Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @Anonymous - recheck the post, I edited it as soon as I posted it

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @Amik  - we're not quite there. The same result comes out as before.

  • Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @Anonymous - the above solution is not delegable. Is your SharePoint list above 2000 rows?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @Amik  - yes, I have only 30 rows

  • Verified answer
    Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    Hi @Anonymous ,

     

    Apologies I misread you're initial question.

     

    If you want to Filter the Gallery where the multi-select SharePoint field contains all selected items from your Combo Box control, you could try the below (again, not delegable).

     

    Filter(
     LCP,
     !(false in ForAll(
     cbApplication.SelectedItems,
     ThisRecord.Value in Application.Value
     ))
    )

     

    However, note that this expression will also return any items not selected in your multi-select SharePoint field, but are included in the selected items from your Combo Box control:

     

    More info:

    https://www.youtube.com/watch?v=Wr42PeW6_wU 

     

    ------------------------------------------------------------------------------------------------------------------------------

     

    If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution.

    If you like my response, please give it a Thumbs Up.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you very much!

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 396 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 323

#3
WarrenBelz Profile Picture

WarrenBelz 193 Most Valuable Professional

Last 30 days Overall leaderboard