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 to show...
Power Apps
Answered

filter gallery to show Favorites based on SP list column

(0) ShareShare
ReportReport
Posted on by 125

Hi Everyone,

 

I'm working on a networking powerapp.  

people can log on and create a personal profile to offer mentorship and support for others in the organization.

Each profile is a line on a SP list.  One of the columns is a favorites column, users can add their favorite users to that column,

 

I'd then like to filter a gallery to just show their favorite users, but I'm struggling to work out how to look up the contents of the favorites cell of the current logged in user and then filter the gallery by all of the names in that cell.

 

List = People in organisation

 

TitlePersonJob TitleLocationFavourites
Single line of text (varUserFullName)Person GroupSingle line of text Single line of text Single line of text
John DoeJohn DoeEditorNew YorkJane Doe, Rob Smith, Alexa Kim
Jane DoeJane DoeCreative ConsultantLondonJohn Doe, Jane Doe
Rob SmithRob SmithHead of DepartmentParisRobyn Smith, Alex Kim, Alexa Kim
Robyn SmithRobyn SmithPALisbonJohn Doe
Alex KimAlex KimDirectorWashingtonJane Doe, Robyn Smith, Alexa Kim
Alexa KimAlexa KimCEOBerlinJane Doe, Rob Smith

 

Any suggestions would be really appreciated

Thanks

Chris

Categories:
I have the same question (0)
  • Verified answer
    gcmfaizan Profile Picture
    1,022 on at

    Hi @Chwilkinson ,

     

    to achieve this create a collection on OnStart of the app:

    ClearCollect(
     colUserFavorites,
     Filter(
     'YourDataSourceName',
     Title = User().FullName
     ).Favourites
    );

    in your gallery Item property use this formula to get records as per current user favourites:

    Filter(
     'YourDataSourceName',
     colUserFavorites.Value in FullName
    )

     

    If this is the answer for your question, please mark the post as Solved.
    If this answer helps you in any way, please give it a like.

     

    Cheers!

     

     

  • Chwilkinson Profile Picture
    125 on at

    HI @gcmfaizan 

    Thanks for the reply, The collection was a great shout but its not liking the filter on the gallery, collection is a table and the field is looking for text, just trying to work out how to convert it.

    Thanks

    Chris

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 842

#2
Valantis Profile Picture

Valantis 563

#3
Haque Profile Picture

Haque 402

Last 30 days Overall leaderboard