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 / Cross List filter base...
Power Apps
Unanswered

Cross List filter based on user level

(0) ShareShare
ReportReport
Posted on by 121

I have 2x Sharepoint lists 1 called (CLUserRoles) and the other called (Command).

I have created a login system so that when the user opens the app for the 1st time it self populates the Sharepoint List (CLUserRoles) based on their details held on Microsoft 365.

 

I will then assign their department manually once they request access.

I have multiple departments but lets say 3 people are in the department called "HQ".

 

How can i create a gallery to show only the user records from (Command) with the HQ profile?

Hope this makes sense.

Categories:
  • alaabitar Profile Picture
    1,503 Super User 2024 Season 1 on at

    Hello @Markswan20 

    For this you will need to filter your gallery based on the user's department in CLUserRoles.

    Let's say you have a column called department and email in CLUserRoles and also a column called Department in Command.

    In your apponstart envent you can put something like

    Set(_currentUser = LookUp(CLUserRoles, Email = User().Mail)

    and your items property of your gallery should look like

    Filter(Command, Department = _currentUser.Department)

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 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 204 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard