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 / Multi filter with a co...
Power Apps
Unanswered

Multi filter with a combobox

(0) ShareShare
ReportReport
Posted on by

Hello, 

 

I would like to filter a collection with multiple combobox: 

 

ClearCollect(
ColFitlerAlerts,
Filter(VarAlert,
Or(!IsEmpty(Filter(CBMarket.SelectedItems, Value = MARKET_ID)), IsEmpty(CBMarket.SelectedItems)),
Or(!IsEmpty(Filter(CBStatus.SelectedItems, INT_STATUS_ID = INT_STATUS_ID ) ), IsEmpty(CBStatus.SelectedItems)
)))

 

 

The first filter with the Market is working well. 

For the second, I can't figure it out. 

 

The items of my Combobox is 

Capucine_Sophie_0-1700496922624.png

Capucine_Sophie_1-1700496957319.png

 

And in my collection I have a column INT_STATUS_ID

Capucine_Sophie_2-1700497103195.png

 

 

Can you please help me ?

 

 

Categories:
  • v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @Capucine_Sophie ,

     

    Could you please tell me what you want with combo boxes?

    I think it will be better to show some examples or screenshots.

     

    Thanks.

    Rimmon

     

  • Capucine_Sophie Profile Picture
    on at

    Hello Rimmon, 

     

    I want to filter my Collection VarAlert with this formula using 2 combobox. 

     

    ClearCollect(
    ColFitlerAlerts,
    Filter(VarAlert,
    Or(!IsEmpty(Filter(CBMarket.SelectedItems, Value = MARKET_ID)), IsEmpty(CBMarket.SelectedItems)),
    Or(!IsEmpty(Filter(CBStatus.SelectedItems, INT_STATUS_ID = INT_STATUS_ID ) ), IsEmpty(CBStatus.SelectedItems)
    )))

     

    The first filter with the Market is working. The items of my combobox is 

    Capucine_Sophie_0-1700552429182.png

     

    The second part in red with the alert Status is not working. Here is the combobox set up 

    Capucine_Sophie_1-1700552516308.png

     

     

     

    I column I want to filter in my collection is named INT_STATUS_ID

    Capucine_Sophie_2-1700552635960.png

     

  • v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi,

    If combo box is single selection, please try this:

    ClearCollect(ColFitlerAlerts,
    If(IsBlank(CBMarket.Selected)&&IsBlank(CBStatus.Selected),VarAlerts,Filter(VarAlerts,MARKET_ID=CBMarket.Selected.Value&&INT_STATUS_ID=CBStatus.Selected.INT_STATUS_ID)))

    If combo box is multiple selection, please try this:

    ClearCollect(ColFitlerAlerts,
    If(IsEmpty(CBMarket.SelectedItems)&&IsBlank(CBStatus.SelectedItems),VarAlerts,Filter(VarAlerts,MARKET_ID in CBMarket.SelectedItems.Value&&INT_STATUS_ID in CBStatus.SelectedItems.INT_STATUS_ID)))

     

  • Capucine_Sophie Profile Picture
    on at

    I would like to keep this formula structure as I will add other filters. 

     

    ClearCollect(
    ColFitlerAlerts,
    Filter(VarAlert,
    Or(!IsEmpty(Filter(CBMarket.SelectedItems, Value = MARKET_ID)), IsEmpty(CBMarket.SelectedItems)),
    Or(!IsEmpty(Filter(CBStatus.SelectedItems, INT_STATUS_ID = INT_STATUS_ID ) ), IsEmpty(CBStatus.SelectedItems)
    )))

     

     

  • v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi!

    Have you tried just use second condition to filter data?

    ClearCollect(
    ColFitlerAlerts,
    Filter(VarAlert,
    Or(!IsEmpty(Filter(CBStatus.SelectedItems, INT_STATUS_ID = INT_STATUS_ID ) ), IsEmpty(CBStatus.SelectedItems)
    )))

    If it cannot filter data, please check the data type: INT_STATUS_ID = INT_STATUS_ID

    If they are different types, I suggest change them to same data type:

     Text(INT_STATUS_ID) = Text(INT_STATUS_ID)

     Or

     Value(INT_STATUS_ID) = Value(INT_STATUS_ID)

     

     

  • Capucine_Sophie Profile Picture
    on at

    Hello, 

     

    The Market alone is working well 

     

    ClearCollect(
    ColFitlerAlerts,
    Filter(VarAlert,
    Or(!IsEmpty(Filter(CBMarket.SelectedItems, Value = MARKET_ID)), IsEmpty(CBMarket.SelectedItems))))

     

    With the drop down set up like this : 

    Capucine_Sophie_2-1700645881031.png

     

     

    If I do the status alone it's not working - (I tried with Text and value too):

    ClearCollect(
    ColFitlerAlerts,
    Filter(VarAlert,
    Or(!IsEmpty(Filter(CBStatus.SelectedItems, INT_STATUS_ID = INT_STATUS_ID ) ), IsEmpty(CBStatus.SelectedItems))))

     

    Here is how the drop down is set up: 

    Capucine_Sophie_1-1700645821287.png

    Capucine_Sophie_3-1700645931735.png

     

    In my data base I have INT_STATUS_ID which I want to filter 

    Capucine_Sophie_5-1700646032210.png

     

     

     
     

     

     

     

  • Cat Schneider Profile Picture
    488 Most Valuable Professional on at

    I'm not sure if this is of much help for your situation, but I previously answered a question related to multiple multi-field choice columns, and did a blog post breaking down some of the logic used to get to the solution (🪄🐈 TnT #4 🧨 | Yer a wizard, Cat! (yerawizardcat.com)).

  • Capucine_Sophie Profile Picture
    on at

    @ANB  or @SpongYe  Do you have any idea on how to solve this by any chance if you have time ? 🙂

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard