web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Filter Issue Office365...
Power Apps
Answered

Filter Issue Office365Users.User()

(1) ShareShare
ReportReport
Posted on by 245
Hi!  Thank you for your assistance!  I have a PA looking at SharePoint List records.  One column is Location and I want the filter to only get records where the Location selection equals or is in the Power App user's Azure profile.  What I have is sound, but I am not getting the record I should.  Thank you!
 
Sort(
    Filter(
        'Limited-Term Personnel',
        Office365Users.UserProfileV2(User().EntraObjectId).officeLocation in 'Location' &&
        (
            SearchInput1_2.Text in 'First Name' ||
            SearchInput1_2.Text in Title ||
            SearchInput1_2.Text in 'Grade Level/Content Area' ||
            SearchInput1_2.Text in 'ECASD Staff'
        )
    ),
    Role.Value,
    SortOrder.Ascending
)
 
Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    153,073 Most Valuable Professional on at
    Every element of that filter is not Delegable apart from maybe the bit that needs fixing - I am assuming from your screenshot that Location (not a good name for a field as it is a Reserved Word in Power Apps) is a Choice field (hopefully a single choice).
    With(
       {
          _Data:
          Filter(
             'Limited-Term Personnel',
             Location.Value = Office365Users.UserProfileV2(User().EntraObjectId).officeLocation
          )
       },
       Sort(
          Filter(
             _Data,
             (
                SearchInput1_2.Text in 'First Name' ||
                SearchInput1_2.Text in Title ||
                SearchInput1_2.Text in 'Grade Level/Content Area' ||
                SearchInput1_2.Text in 'ECASD Staff'
             )
          ),
          Role.Value,
          SortOrder.Ascending
       )
    )
     
    Please click 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 giving it a Like.
    MVP (Business Applications)     Visit my blog Practical Power Apps    Buy me a coffee

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard