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 gallery on the ...
Power Apps
Unanswered

Filter gallery on the basis of user location

(0) ShareShare
ReportReport
Posted on by

I am having a sharepoint list that has a column "location" which stores name of particular city where discount is available. Now In powerapps, I am having a gallery where I need to filter gallery with discounts based on the logged in user's location.  For ex - If the user belongs to Chicago he should be able to see discounts available in Chicago.

Categories:
I have the same question (0)
  • zmansuri Profile Picture
    6,048 Super User 2024 Season 1 on at

    Let's say you have user table where location is stored for each user.

    App.OnStart:

    Set(varUser,User());

    Set(varLocation,LookUp(UserList,Email=varUser.Email).Location);

     

    This will store logged in user's location in variable.

    in your gallery item property:

    Filter(SpList,Location.Value=varLocation)

    This will filter your list by logged in user's location

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 528

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 306

Last 30 days Overall leaderboard