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 / Create a Filter for Dr...
Power Apps
Answered

Create a Filter for Dropdown and Select Box

(0) ShareShare
ReportReport
Posted on by 23

Hi Guys,

 

i am not a really developer, but i have a problem, which i have to solve, so i hope you can help.

I have a select Box and a Gallery.

I can filter this gallery with this code by clicking on the select box.

 

If(F_NoServices.Value = true; Filter('[dbo].[MLK_main_overview]'; IsBlank(SERVICENAME)); '[dbo].[MLK_main_overview]')

 

I am not sure, how to add a Filter in this code for the Dropdownboxes.

Theese Dropdownboxes have the names Dropdown1, Dropdown2 and Dropdown3

 

Can you help to solve this?

 

Many thanks in advance

Categories:
I have the same question (0)
  • Verified answer
    mmollet Profile Picture
    3,187 on at

    Are you trying to filter based on all 3 dropdowns and the checkbox as well? So filtering on 4 inputs?

    If so try this:

    If(F_NoServices.Value = true; Filter('[dbo].[MLK_main_overview]'; IsBlank(SERVICENAME)) And column1 = Dropdown1.Selected.Value And column2 = Dropdown2.Selected.Value And column3 = Dropdown3.Selected.Value; '[dbo].[MLK_main_overview]')

     

    column1/2/3 are going to be the names of the columns you are wanting to filter on in your database.

     

    If you get a little yellow triangle sign when you do this then it may take some extra steps in order to do this all at once as you might have a delegation issue. Try that and let us know what the results are. 

  • Sebi087 Profile Picture
    23 on at

    No i try to filter on only one dropdown or the checkbox.

    I tried your code with an or statement like this:

    IsBlank(SERVICENAME)) Or Label13 = Dropdown1.Selected.Value but .Value isn't an acceptable Value. The form returns invalid Argument. I just can select .Results for Dropdown1.

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 477

#2
WarrenBelz Profile Picture

WarrenBelz 341 Most Valuable Professional

#3
11manish Profile Picture

11manish 317

Last 30 days Overall leaderboard