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 / Filter items by Manage...
Power Apps
Unanswered

Filter items by Manager's direct report

(0) ShareShare
ReportReport
Posted on by 5

HI everyone,

 

I have a Manager's screen and would like to only show items that have been created by me/Manager's direct reports. This will be different for each Manager, depending on their Direct Report.

please advise?

 

image.png

Categories:
  • zmansuri Profile Picture
    6,048 Super User 2024 Season 1 on at

    first of all store the emails of direct reports into a collection using office365user's collection

    App.OnStart:

    Set(varUser,User());

    ClearCollect(colDR,Office365Users.DirectReportsV2(varUser.Email).value.mail);

    This will create collection with email ids of the person who directly reports to the logged in user.

     

    on the gallery filter try something like this:

     

    Filter(List,CreatedBy.Email=varUser.Email || CreatedBy.Email in colDR)

     

    the above code will display items that were created by you or your subordinates

  • Kamozzi Profile Picture
    5 on at

    Thanks for a quick response. I think this will work but I currently have something like below. how can incorporate what you have advised. I have some filtering on the gallery. 

     

    If(Dropdown1_2.Selected.Result = "All", SortByColumns( ListName, "Created", SortOrder.Descending ), Filter( SortByColumns( ListName, "Created", SortOrder.Descending ), Status = Dropdown1_2.Selected.Result))

  • zmansuri Profile Picture
    6,048 Super User 2024 Season 1 on at

    If(Dropdown1_2.Selected.Result = "All", SortByColumns( ListName, "Created", SortOrder.Descending ), Filter( SortByColumns( ListName, "Created", SortOrder.Descending ), Status = Dropdown1_2.Selected.Result,CreatedBy.Email=varUser.Email || CreatedBy.Email in colDR))

  • Kamozzi2 Profile Picture
    9 on at

    Thanks for doing this, i think we are near, i tired the above but it just bring back everything that someone else has created. any ideas?

    Kamozzi2_0-1636538865702.png

     

    Kamozzi2_1-1636538886993.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

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

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 139

Last 30 days Overall leaderboard