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 Apps
Unanswered

Filter Gallery

(0) ShareShare
ReportReport
Posted on by 321

Hi everyone,

I want to filter this gallery based on user accessing the dashboard and the corresponding  ApproverID . My code below

 

With(
{
myApprovalList: LookUp(
'SFA Leave Approvers',
ASM = varUserEmail || Sops = varUserEmail
).ApproverID
},
SortByColumns(
Filter(
'SFA Leave Request',
FormStatus = "Awaiting Automation Support Manager" && ApproverID = myApprovalList || FormStatus = "Awaiting Sales Operations" && ApproverID = myApprovalList,
StartsWith(
'Name of User',
TextSearchBox1_1.Text
)
),
"ID",
If(
SortDescending1,
SortOrder.Descending,
SortOrder.Ascending
)
)
)

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    155,463 Most Valuable Professional on at

    Hi @codeworks ,

    A bit hard without knowing your exact logic, but your And/Or needed bracketing and I do not think you need the Or

    With(
     {
     myApprovalList: 
     LookUp(
     'SFA Leave Approvers',
     ASM = varUserEmail || Sops = varUserEmail
     ).ApproverID
     },
     SortByColumns(
     Filter(
     'SFA Leave Request',
     FormStatus = "Awaiting Automation Support Manager" && 
     FormStatus = "Awaiting Sales Operations" && 
     ApproverID = myApprovalList && 
     StartsWith(
     'Name of User',
     TextSearchBox1_1.Text
     )
     ),
     "ID",
     If(
     SortDescending1,
     SortOrder.Descending,
     SortOrder.Ascending
     )
    )

     

    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.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • codeworks Profile Picture
    321 on at

    I have to lists

    List 1.

    FormStatus

    ApproverID

     

    List 2

    ASM

    Sops

    ApproverID

     

    I want ASM to only see what has Form Status as Awaiting Automation Manager Support and Sales Ops to see what has Form Status as Awaiting Sales Operations.

     

    the problem I am having with my logic is both ASM and Sops is seeing what belongs to two of them at the same time

    leave.PNG

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 610

#2
Haque Profile Picture

Haque 317

#3
WarrenBelz Profile Picture

WarrenBelz 315 Most Valuable Professional

Last 30 days Overall leaderboard