Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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.

  • ShondaT Profile Picture
    228 on at
    Re: Filtering a Gallery

    I will give this a try! Thank you again!

  • BCBuizer Profile Picture
    21,999 Super User 2025 Season 1 on at
    Re: Filtering a Gallery

     

    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
    Re: Filtering a Gallery and also

    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
    )

  • ShondaT Profile Picture
    228 on at
    Re: Filtering a Gallery

    .

  • BCBuizer Profile Picture
    21,999 Super User 2025 Season 1 on at
    Re: Filtering a Gallery and also

    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
    )

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,587 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,928 Most Valuable Professional

Leaderboard