cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
WackdeMack Helper II
Helper II

Combine multiple filters for gallery

Hi all,

 

I have a question, can i combine the next two filters. I have made an repeating table app which works fine. I have a Master list and a detail list. For the two galleries i have this filter, 

 

 

Filter(Project, MasterID = MasterGallery.Selected.Id)

 

 

Works fine, when i click in the left gallery i see al the detail items. For the detail list i have made a few dropdown filters but i can't combine the filters. It possible to combine the next filter with the first filter:

 

 

Filter(
    Detailist,
    Sort.Value = drpSort.Selected.Value || If(
        IsBlank(drpSort.Selected.Value),
        true,
        false
    ),
    Project.Value = drpProject.Selected.Value || If(
        IsBlank(drpProject.Selected.Value),
        true,
        false
    )
)

 

 

 This filter use fine, i can use my filters but without the first filters. I have tried all kind of solutions, with an extra ;,. but nothing helped. 

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

Re: Combine multiple filters for gallery

Hi @WackdeMack 

 

Can you try to update the expression to:

Filter(
Detailist,
If(
IsBlank(drpSort.Selected.Value),
true,
Sort.Value = drpSort.Selected.Value),
If(
IsBlank(drpProject.Selected.Value),
true,
Project.Value = drpProject.Selected.Value)
)

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

1 REPLY 1
Dual Super User
Dual Super User

Re: Combine multiple filters for gallery

Hi @WackdeMack 

 

Can you try to update the expression to:

Filter(
Detailist,
If(
IsBlank(drpSort.Selected.Value),
true,
Sort.Value = drpSort.Selected.Value),
If(
IsBlank(drpProject.Selected.Value),
true,
Project.Value = drpProject.Selected.Value)
)

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

Helpful resources

Announcements
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Power Platform 2020 release wave 1 plan

Power Platform 2020 release wave 1 plan

Features releasing from April 2020 through September 2020

Top Solution Authors
Top Kudoed Authors
Users online (5,036)