top of page

Filtering a gallery in Power Apps to show only items that the logged in user created.

  • Writer: Jeremiah
    Jeremiah
  • Nov 10, 2020
  • 1 min read

Like every Power App I create the first thing is to set a variable to get the logged in users information on App Start. To do this click App in the tree view and select the on start property.

Set(varUser, User().Email)

You will need a field to capture the email address to compare your filter to. I typically prepopulate a field and then hide it so the user doesn’t know its there.

To do this create a text field I called mine Email Address then select the field and choose the default property.

varUser

Now that we have this data saved we can set the filter on our Gallery.

Select the top entry of the Gallery and select the Items Property to add your Filter to.

Filter('COVID-19 Time Tracking', 'Email Address' =varUser)

To break this down “Filter” is your action (‘Your DataSource you want to filter on’, ‘Your Field’ = Your variable)

Below you can see that all items that are showing are ones I created.


Comments


Join our mailing list

  • Black Facebook Icon
  • Black Twitter Icon
  • Black Pinterest Icon
  • Black Flickr Icon
  • Black Instagram Icon

© 2023 by The Mountain Man. Proudly created with Wix.com

bottom of page