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 Issue Office365...
Power Apps
Answered

Filter Issue Office365Users.User()

(1) ShareShare
ReportReport
Posted on by 253
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:
  • Verified answer
    WarrenBelz Profile Picture
    156,956 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

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