cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
K369
Resolver II
Resolver II

Combining multiple conditions on filtering browse gallery

Hi everyone,

I am helped on the following and is working very well indeed.

Sort( Filter( 'My List', IsBlank(Dropdown1.Selected.Value) || Location.Value = Dropdown1
.Selected.Value ), Date, Descending )

Now I want to also include additional filter as :

Dropdown4 selection as "Closed"  ( It has tow selections "Open" & "Closed") This dropdown is on the gallery itself 

 

I tried but no success yet.

Any help please.

Thanks

Regards

 

10 REPLIES 10

told ya this is not how the Filter() function work.

 

You should make an If() function before Filter(). The syntax of Filter() allows you to check if COLUMN in the source matches the formula. NOT any control like DropDown.

 

e.g.

Sort( Filter( 'MyList', IsBlank(Dropdown1.Selected.Value)

Sort( Filter( 'MyList', IsBlank('Some column from MyList')

 

The solution might be:

(I'm still not sure what exactly are you trying to achieve so I will show you only the start of your code):

If(IsBlank(Dropdown1.Selected.Value(Filter('MyList', Location.Value .....

 

and again..

check this: https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-filter-lookup

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (2,847)