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 / Filtering Gallery with...
Power Apps
Answered

Filtering Gallery with Two Conditions - ACL and Dropdown

(0) ShareShare
ReportReport
Posted on by 2

Hello,

 

I have the below scenario where request help.

1. SP List as base data

2. Status Column in List containing options = ["Open", "Submitted", "Closed", "Send Back"]

3. App containing screen where gallery is location to see the items.

4. One ACL is created to check if the logged in user is there in the ACL list.

5. If the user is in ACL then show all items else show the items where the logged in user is owner.

 

Requirement: I have created a dropdown in the same screen with the Status "Active" and "Closed". If the value selected is "Active" then the gallery should show items other than "Closed", and if the status is "Closed" then it should show only items with status "Closed".

 

Below some test code but can someone please help to achieve this?

 

 

 

If (
 IsBlank(
 LookUp(
 'Admin Team',
 Name.DisplayName = VarLoginUserName
 )
 ),
 Filter(
 'Management App',
 'Owner'.DisplayName = VarLoginUserName && If( DD_Status_1.SelectedText.Value = "Active", Filter('Management App',Status.Value <> "Closed") , Filter('Management App',Status.Value = "Closed")) 
 ),
 If( DD_Status_1.SelectedText.Value = "Active", Filter('Management App',Status.Value <> "Closed") , Filter('Management App',Status.Value = "Closed"))

 

 

 

Thanks,

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    156,454 Most Valuable Professional on at

    Hi @AkshayManke ,

    Maybe something like this

    With(
     {
     wAdmin:
     LookUp(
     'Admin Team',
     Name.DisplayName = VarLoginUserName
     ).Name,
     wActive: DD_Status_1.SelectedText.Value = "Active"
     },
     Filter(
     'Management App',
     (
     !IsBlank(wAdmin) ||
     'Owner'.DisplayName = VarLoginUserName
     ) && 
     (
     (wActive && Status.Value <> "Closed") ||
     (!wActive && Status.Value = "Closed")
     )
     ) 
    ) 

     

    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.

    Visit my blog Practical Power Apps

  • AkshayManke Profile Picture
    2 on at

    Thanks a lot @WarrenBelz, I am getting the expected results through the code you shared. Many Thanks,

     

    Regards,

    Akshay

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard