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 / How to filter Powerapp...
Power Apps
Unanswered

How to filter Powerapps gallery data with multi select combo box?

(0) ShareShare
ReportReport
Posted on by 388

Hi,

 

I have a large data in SQL table and displaying in Powerapps gallery. I am trying to gallery data using selected values in multi select combo box but I am not getting results and getting delegation warning.

 

Here is my code.

 

StatusCombobox Items property has following items ["","Active", "Archive", "Inactive"]

OnChange has Set(varStatusCombo,Concat(statusComboBox.SelectedItems, Value & ", "))

 

Powerapps gallery Items has following code

 

 

SortByColumns(If(txtHSSID_1.Text = "",
Filter(
'SQLDataConnection',
status in statusComboBox.SelectedItems
),
Filter(
'powerapps.v_pa_krnl_published',
hssid = Value(txtHSSID_1.Text)
)
),varSortColumn,varSortDirection)

 

 

If I use below filter condition, I am getting results

 

status = "Active"

 

but I am not getting results if I use following 

 

status in varStatusCombo OR

status in  statusComboBox.SelectedItems

 

Any help would be greatly apprecited.

 

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    154,475 Most Valuable Professional on at

    Hi @aaedla ,

    Firstly how big is your list as this may not be a total solution. The below should get rid of the Delegation warning, but the top filter needs to return record numbers under your Data Row Limit for a complete result.

    With(
     {
     _Data:
     Filter(
     'SQLDataConnection',
     Len(txtHSSID_1.Text) = 0 ||
     hssid = Value(txtHSSID_1.Text)
     )
     },
     SortByColumns(
     Ungroup(
     ForAll(
     statusComboBox.SelectedItems As _Items,
     Filter(
     _Data,
     status = _Items.Value
     )
     ),
     "Value"
     ),
     varSortColumn,
     varSortDirection
     )
    )

     

    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

  • OK29 Profile Picture
    388 on at

    Hi @WarrenBelz ,

     

    Thank you for your suggestions but I am getting invalid arguements error message in the following part.

     

    With(
    _Data,
    Filter(
    'powerapps.v_pa_krnl_published',
    length(txtHSSID_1.Text )=0||
    hssid = Value(txtHSSID_1.Text)
    )}

     

    Any suggestion?

  • WarrenBelz Profile Picture
    154,475 Most Valuable Professional on at

    @aaedla ,

    Typing error - please see correction.

  • OK29 Profile Picture
    388 on at

    Thank you @WarrenBelz .

     

    But it is not working as expected. If I change the status, it's trying to filter the records from _Data (which is like a data collection ) Only and it's not filtering the data from database based on statuses which I selected in combo box. I do have more than 25000 records in database.

  • WarrenBelz Profile Picture
    154,475 Most Valuable Professional on at

    @aaedla ,

    As I noted clearly in my post, depending on your list size - this may not be a solution. I will go a step further, but this is as far as you can go (now I know you have 25k records)

    SortByColumns(
     Ungroup(
     ForAll(
     statusComboBox.SelectedItems As _Items,
     Filter(
     'SQLDataConnection',
     status = _Items.Value &&
     (
     Len(txtHSSID_1.Text) = 0 ||
     hssid = Value(txtHSSID_1.Text)
     )
     )
     ),
     "Value"
     ),
     varSortColumn,
     varSortDirection
    )

     

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 542 Most Valuable Professional

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard