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 / Filtering a Gallery
Power Apps
Unanswered

Filtering a Gallery

(0) ShareShare
ReportReport
Posted on by 228

I have a gallery that was filtering based on a selection from a drop down box with this code:

 

If(Dropdown1.Selected.Result = "All", 'NEST Intake System', Filter('NEST Intake System', Status.Value = Dropdown1.Selected.Result))

 

I need the gallery to initially only show items that were created by the current user and that also contains the current user's name in the Return to field which is a people/group column that allows for more than one name to be entered. I changed the code to below: 

Filter('NEST Intake System', 'Created By'.DisplayName = varUserEmail & Status.Value = Dropdown1.Selected.Result);

 

The varUserEmail is established on the StartUp property of the app but it's not working.

 

Any help would be appreciated.

Categories:
I have the same question (0)
  • BCBuizer Profile Picture
    22,844 Super User 2026 Season 2 on at

    Hi @ShondaT ,

     

    With the below changes this should work as described:

    Filter(
    	'NEST Intake System', 
    	'Created By'.Email = varUserEmail,
    	varUserEmail in Return,
    	Dropdown1.Selected.Result = "All" || Status.Value = Dropdown1.Selected.Result
    )

     

  • ShondaT Profile Picture
    228 on at

    .

  • ShondaT Profile Picture
    228 on at

    Thank you so much for responding so quickly BCBuizer! This forum has some awesome folks!

     

    The "Return To" reference is rendering an error that reads "Invalid Schema. Expecting a one-column table" when I hover over the reference. There is also a delegation warning: 

     

    ShondaT_0-1675895528154.png

     

     

    Filter(
    'NEST Intake System',
    'Created By'.Email = varUserEmail,
    varUserEmail in 'Return To',
    Dropdown1.Selected.Result = "All" || Status.Value = Dropdown1.Selected.Result
    )

  • BCBuizer Profile Picture
    22,844 Super User 2026 Season 2 on at

     

    I assume the 'Return To' column is a person/group type? In that case .Email needs to be added.

     

    The "in" operator is causing the delegation warning. What you can do to not have this be an issue is pre-filtering: As long as the number of pre-filtered items, using a delegable filter, does not exceed the Data Row Limit (typically 500, but can be raised to 2000), you can ignore the warning. 

     

    Below is what those two changes look like:

     

    With({
    	_preFilter: Filter(
    		'NEST Intake System', 
    		'Created By'.Email = varUserEmail,
    		Dropdown1.Selected.Result = "All" || Status.Value = Dropdown1.Selected.Result
    	)},
    	Filter(
    		_preFilter, 
    		varUserEmail in 'Return To'.Email,
    	)
    )

     

     

    HI @ShondaT,

  • ShondaT Profile Picture
    228 on at

    I will give this a try! Thank you again!

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 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard