web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to filter a a gall...
Power Apps
Unanswered

How to filter a a gallery with multiselect combobox

(0) ShareShare
ReportReport
Posted on by 158

Hi All,

 

I need your help in filtering a gallery with multi select combobox :

items of combobox: Distinct(vw_equipment_classification,class_description)

onchange on combobox: ClearCollect(multifilter1, Self.SelectedItems);

 

gallery items:

Filter(AddColumns(vw_equipment_classification,"class_description2",class_description),class_description in multifilter1))

 

Please help urgently!

Thanks

Categories:
I have the same question (0)
  • LaurensM Profile Picture
    12,516 Moderator on at

    @ridhan,

     

    Assuming that class_description is a text field, that Filter code looks good and I would expect it to work. 

     

    Would it be possible to provide more information about (1) the error, (2) the column types and (3) the datasource?

     

    Thanks!

  • ridhan Profile Picture
    158 on at

    Thanks for replying @LaurensM - below is more information:

    1. Error: It is only working till row 2000 and not filtering data after 2000 rows

    2. Column types: class_description is a nvarchar

    3. Datatsource is- sql

  • LaurensM Profile Picture
    12,516 Moderator on at

    @ridhan using the 'in' operator in such a manner indeed will cause a delegation warning. Should your list not exceed the Data Row Limit (default 500, max 2000) then this is nothing to worry about.

     

    A few possibilities you could consider:

    (1) Use a single-select dropdown and check whether the selected value equals your column value

    (2) Prefilter your data to make sure the output is less than 2000 records. Below a fictive example:

    With(
     //Prefilter with a delegable query to get a sub 2000 record output
     {wPrefilter: Filter(vw_equipment_classification, ColumnX = ValueY)},
     //Non-delegable filter on the prefiltered dataset
     AddColumns(
     Filter( 
     wPrefilter, 
     class_description in multifilter1 
     ),
     "class_description2", 
     class_description 
     )
    )

     

    (3) Move the filter logic to Power Automate by using Stored Procedures or the Execute a Query V2 action. The flow then returns the ouput as a JSON response which is stored to a collection and displayed in the app. (This is generally my go-to approach when using complex non-delegable SQL queries)

     

    I hope this helps!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard