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 is now working ...
Power Apps
Answered

Filter is now working in table

(2) ShareShare
ReportReport
Posted on by 21
Hi Guys,
 
I have a screen, in that i filtered the users based on the hierarchy, but it not working
 
Screen - OnVisible property:
code:
ClearCollect(
    colReportees,
    Office365Users.DirectReports(User().Email)
);
 
Table - Items property:
code: 
Filter(
    ReimbursementTables,
    'Request status' <> "Draft" && 
    'Employee mail id' in ForAll(
        colReportees, Mail)
)
Is anyone have an idea about this issue?
I have the same question (0)
  • WarrenBelz Profile Picture
    155,838 Most Valuable Professional on at
     Hi @Saran S,
    I assume you have looked in colReportees and ensured that the correct dataset in in there - your code looks correct to get this data for the staff reporting to the user.
     
    You did not state your data source type or whether you were getting any errors, but possible  Delegation issues aside and assuming that the 'Employee mail id' field in ReimbursementTables contains the case-sensitive email of the target user/s, then this should work
    Filter(
       ReimbursementTables,
       'Request status' <> "Draft" && 
       'Employee mail id' in colReportees.Mail
    )
     
    Please Does this answer your question 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 answering Yes to Was this reply helpful? or give it a Like
    Visit my blog
    Practical Power Apps    LinkedIn  
     
  • Suggested answer
    MS.Ragavendar Profile Picture
    7,431 Super User 2026 Season 1 on at
     
    ClearCollect(
        colReportees,
        Office365Users.DirectReports(User().Email)
    );
     
    ClearCollect(
        colReporteeMails,
        ShowColumns(colReportees, 'Mail')
    );
     
    Items
     
    With(
        { reporteeMails: colReporteeMails.Mail },
        Filter(
            ReimbursementTables,
            'Request status' <> "Draft" &&
            'Employee mail id' in reporteeMails
        )
    )
     
     
    ✅If this helped, please Accept as Solution to help others ❤️ A Like is appreciated 🏷️ Tag @MS.Ragavendar for follow-ups.
     
  • Verified answer
    Saran S Profile Picture
    21 on at
     
    Thanks for your replies.
     
    I found and fixed the issue. It was related to roles — the user did not have access to the Dataverse table.
  • WarrenBelz Profile Picture
    155,838 Most Valuable Professional on at
    I suspected something else, but wanted to make sure all my assumptions were correct and that a simplified version of the code worked (or not)
  • Saran S Profile Picture
    21 on at
    Hi @WarrenBelz,
     
    The code which you given working fine.
     
    Thanks.

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard