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 with comboboxes...
Power Apps
Answered

Filter with comboboxes wont work

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have this in my gallery and it works as intended

 

Sort(
 'Helpdesklog';
 'Case received';
 Descending
)

 

But now I want filters. I got a column "Avtalsområde" and "Status" with different values in them.

And I want 2 comboboxes and you can filter with both these. In column "Avtalsområde" I would like to be able to choose "Home" and in column "Status" I would like to choose "Ongoing" and then is checks the gallery for the items who has these values.

 

These are the conditions in my Comboboxes right know:

Choices('Helpdesklog'.Avtalsområde)

and

Choices('Helpdesklog'.Status)

  @WarrenBelz 

Categories:
  • WarrenBelz Profile Picture
    156,921 Most Valuable Professional on at

    OK @Anonymous ,

    Are you wanting to filter the gallery with these?

    So (replace with the names of your drop-down controls)

    Sort(
     Filter(
     'Helpdesklog';
     Avtalsområde = YourDDName1.Selected.Value,
     Status = YourDDName2.Selected.Value
     ),
     'Case received';
     Descending
    )

     

    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.

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

    Hi @Anonymous ,

    Could you please share a bit more about your 'Helpdesklog' data source? Is it a SP List?

    Are the "Avtalsområde" and "Status" columns both Choice type column in your SP List?

    Further, do you want to filter your Gallery records based on the ComboBox selected values?

     

    Based on the needs that you mentioned, I have made a test on my side, please take a try with the following formula (set the Items property of Gallery to following😞

    Sort(
     Filter(
     'Helpdesklog';
     If(
     !IsBlank(AvtalsområdeComboBox.Selected.Value);
     Avtalsområde.Value = AvtalsområdeComboBox.Selected.Value;
     true
     );
     If(
     !IsBlank(StatusComboBox.Selected.Value);
     Status.Value = StatusComboBox.Selected.Value;
     true
     )
     ;
     'Case received';
     Descending
    )

    Note: Please replace AvtalsområdeComboBox and StatusComboBox with actual ComboBox control name from your app

     

    Please consider take a try with above solution, then check if the issue is solved.

     

    Best regards,

  • WarrenBelz Profile Picture
    156,921 Most Valuable Professional on at

    @v-xida-msft , thank you for the enhancements to my response.

    @Anonymous , happy to continue this thread as you tagged me at the start to help you with it.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at
    Hello again and thanks for the response!

    I will try this as soon as I can. I've been home sick and will be back to the office soon. I really appreciate your help will this. I'll be in touch an soon as i've tried your suggestion.

    Thanks!
  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    Have you taken a try with the solution I provided above? Is it helpful in your scenario?

     

    Please take a try with the solution I provided above. If you have solved your problem, please consider go ahead to click "Accept as Solution" to identify this thread has been solved.

     

    Best regards,

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @v-xida-msft I tried your formula but I got an error with the Sort condition:

    "Unexpected sign. The formula contains ParenClose where Eof was expected."

     

    Its from an SP list and both columns and choice columns.

     

    And yes, I want to filter my gallery items based on the ComboBox selected values.

     

     

    @WarrenBelz I got no errors wirh your formula but it doesnt work as expected. I can filter but not with several choices. I can select multiple values but in the gallery they overwrite eachother. SelectMultiple is set on "True".

     

    I choose for example:

    Avtalsområde: North and Status: Ongoing everything works fine, I can see all items with choosen Avtalsområde and Status

     

    But then I also choose Avtalsområde: South and Status: Ready and when I do this all items that i selected previous (North and Ongoing) dissapears from the gallerylist even if I still has them selected.. Then is only shows Items with South and Ready.

  • Verified answer
    corey_msft Profile Picture
    Microsoft Employee on at

    @Anonymous Can you please try the following:

     

    Sort(
     Filter(
     'Helpdesklog';
     Avtalsområde in YourDDName1.SelectedItems.Value;
     Status in YourDDName2.SelectedItems.Value
     );
     'Case received';
     Descending
    )
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @_Corey_ Your formula worked, it I can now select several without them overwriting eachother when i added "Items" och "in".

     

    But now I get a delegation warning and not all items are showing up. I guess i'm making a new thread about that.. 🙂

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

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard