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 / PowerApps Gallery Filter
Power Apps
Unanswered

PowerApps Gallery Filter

(0) ShareShare
ReportReport
Posted on by 111

I have a list called SalesTeam, within that list I have a column for Hiring Manager (Person) and a Column for Office(Choice). I am trying to build a gallery in PowerApps in such  a way that 

a. If logged in user is Hiring Manager he can only see items that he/she is hiring Manager of.

b. If logged in user is recruiter he/she can see all items related to his/her office.

c. there is a searchbox, and use that to search some columns in list

I can get the logged in user info Onstart of the app.

This is what I have and I am lost now, please help.

 

 

Filter(
 'SalesTeam',
 (IsBlank(TextInput2.Text) || TextInput2.Text in 'Office'.Value || TextInput2.Text in TagNum|| TextInput2.Text in 'Request Received'|| TextInput2.Text in 'Request Status'.Value || TextInput2.Text in "AreaofOp")
 ),
 varSortColumn,
 varSortDirection
)

 

 

Categories:
  • WarrenBelz Profile Picture
    156,921 Most Valuable Professional on at

    Hi @mssa12345 ,

    A structure is below, but you will need some values - I have used Variables in this example.

    varAdmin is for someone who can see all records

    varHiring is the status of Hiring Manager

    varRecruiter - recruiter
    varOffice - office user belongs to

    SortByColumns(
     Filter(
     'SalesTeam',
     (
     IsBlank(TextInput2.Text) || 
     TextInput2.Text in 'Office'.Value || 
     TextInput2.Text in TagNum || 
     TextInput2.Text in 'Request Received'|| 
     TextInput2.Text in 'Request Status'.Value || 
     TextInput2.Text in "AreaofOp"
     ) &&
     ( 
     varAdmin ||
     (varHiring && 'Hiring Manager'.Email = User().Email) ||
     (varRecruiter && Office.Value = varOffice)
     )
     ),
     varSortColumn,
     varSortDirection
    )

     

    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

  • mssa12345 Profile Picture
    111 on at

    @WarrenBelz thank you for the help. I am sorry if this question is too much. I have a different list 'Recruitment Office' where I have 3 columns 

    a. Recruiter( Person)

    b. Admin( Person)

    c. Office ( choice )

    So, now how can I use this so that Recruiter can only see records related to his office ?

  • WarrenBelz Profile Picture
    156,921 Most Valuable Professional on at

    @mssa12345 ,

    So is Admin the hiring manager and how do you determine who can see all records ?

  • mssa12345 Profile Picture
    111 on at

    @WarrenBelz 

    a. Hiring Manager can only see items where he is the hiring manager ( one of the question in entry form a person column on Sales Team list).

    b. Recruiter can see everything within his office. ( we will know if he is recruiter or not looking at  'Recruitment Office' list and the associated office ). If his name is there is Recruiter column or not.

    c. Admin can see everything ( determine admin looking at  'Recruitment Office' list and see if isAdmin  choice column is yes in the  'Recruitment Office' list.)

    I hope I am explaining in a way which makes sense. Thank you for your help.

  • WarrenBelz Profile Picture
    156,921 Most Valuable Professional on at

    Hi @mssa12345 ,

    Other than recruiter which is below and I have called varOffice

    Set(
     varOffice,
     LookUp(
     'Recruitment Office',
     Recruiter.Email = User().Email
     ).Office.Value
    )

    which you can use to Filter the relevant office records, I am unclear with your structure how Admin works (is IsAdmin in every record) and where the hiring manager column comes from.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 234 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
timl Profile Picture

timl 122 Super User 2026 Season 2

Last 30 days Overall leaderboard