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 and Search issues
Power Apps
Unanswered

Filter and Search issues

(0) ShareShare
ReportReport
Posted on by 2

Hello,

 

I'm creating an App for work that reads/updates information from a sharepoint list (on Office 365) call 'Staff Lunches' I want the BrowserGallery to filter by 'Staff_Name' so Staff members will only see their items when running the App.

 

When I set the Items property of the BrowserGallery to just the table name it displays all the items in 'Staff Lunches' -correct.

When I seach or filter the items such as Filter('Staff Lunches',User().FullName = Staff_Name)  it doesn't return all of the expected items - see screen shot Missing an itemMissing an itemIf I change the filter to Filter('Staff Lunches',"Martin Fitzsimons" = Staff_Name) it displays the missing itemsCorrect.PNG

 

 

I've checked the items in the Staff_Name column to make sure it's correct and it is. 

Any pointers on what I'm missing would be much appreciated.

 

 

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Very strange behavior.

    Might be related to User() function but it is a longshot.

    Try to do the following in your first Screen1.OnStart add this function (or add this to the screen where you show the gallery in the OnVisible property)

     

    Set(
     _UserName,
     User().FullName
    )

    Now in your Gallery.Item function put this:

    Filter('Staff Lunches',_UserName = Staff_Name)

    Allso Check if in a label.Text User().FullName gves exactly the same result as "Martin Fitzsimons"

  • Martin_Fitz Profile Picture
    2 on at

    Hey, thanks for the reply. Yes it is. Did try the set idea before and retried it but it only returns _UserName as blank. I've been told to shelve this project for now. So I won't be carrying on the Dev work. Thanks for your help though.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard