web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Display Gallery items ...
Power Apps
Unanswered

Display Gallery items based on Sharepoint list 'level' columns

(0) ShareShare
ReportReport
Posted on by

Hello Community,

 

I created an app that will be used for ordering a phone replacement based on each employee level.

I have two SharePoint lists: one with 2 columns, employee name and employee level; and second list with Phone model and level.

 

What I want is that in my app's gallery, people to see only the phone models that have the same level with their level.

 

Thank you in advance for your response.

Categories:
I have the same question (0)
  • Verified answer
    Devvj Profile Picture
    1,132 Super User 2024 Season 1 on at

    Hi,
    If the Employee name in the SharePoint List is the same as in the Full Name of the logged in user you could save the level on the logged in user in a variable upon appstart

    ClearCollect(colCurrentEmployeeFromSharePointList,
     Lookup(EmployeeListInSharePoint, EmployeeName = User().FullName)
    )

     

    Then you can populate the gallery items using a filter, something like this

    Filter(SharePointPhoneList, 
     Level = First(colCurrentEmployeeFromSharePointList).level
    )
  • Verified answer
    Ami K Profile Picture
    15,674 Super User 2024 Season 1 on at

    @FilipC2 if we assume:

     

    • SharePoint List 1 contains the the phone model and employee level
    • SharePoint List 2 contains the employee name and employee level
    • The employee name field is a single choice people picker field

     

    See the simple example below applied to the Items property of a Gallery:

     

    Filter(
     'SharePoint List 1',
     'Your Employee Level Field from SP List 1' = LookUp(
     'SharePoint List 2',
     'Your People Field'.Email = User().Email,
     'Your Employee Level Field from SP List 2'
     )
    )

     

     

    If you're Employee Level fields are Choice fields, append the employee level field names with ".Value"

     

    Filter(
     'SharePoint List 1',
     'Your Employee Level Field from SP List 1'.Value = LookUp(
     'SharePoint List 2',
     'Your People Field'.Email = User().Email,
     'Your Employee Level Field from SP List 2'.Value
     )
    )

     

     

    ------------------------------------------------------------------------------------------------------------------------------

     

    If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution.

    If you like my response, please give it a Thumbs Up.

    Imran-Ami Khan

  • FilipC2 Profile Picture
    on at

    Brilliant,

     

    Both solutions are working.

    Thank you both for your time.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard