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 / Create a profiling wit...
Power Apps
Answered

Create a profiling with Power Apps

(0) ShareShare
ReportReport
Posted on by 90

Hello everyone,

I am trying to create a profile in power apps through the team user, it will be the one obtained with the User() function and the Email.

I have two sharepoint list, a general one with the fields Field1 that are colors and Field2 that are Names.

Field1Fiel2
redRick
blueDaryl
yellowMorgan
whiteMaggie
redNegan

 

In the second list there is only the user and the color.

profileField1
userred
userwhite

 

The first table displays the data in a gallery and what I need is for it to display only the computer user information that matches list2, for example, two colors would be displayed, red and white.

the goal is that the gallery only shows the data of those that are in list2.

I have tried with lookup (but it only brings me a record).

Any ideas??.

Thank you so much

Categories:
I have the same question (0)
  • Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    Hi @Segu1 @ - it appears you want to filter a list by another list. You could try something like:

     

    ClearCollect(
     col_Example,
     Filter(col_SP_List1, Field1 in col_SP_List2.Field1)
     )

     

  • SeguM Profile Picture
    90 on at

    hello Amik,

    Thank you very much for your answer. However, my database is quite large and with the "in" function I am having delegation issues and the same is happening with collections.

    Thank you so much

  • SeguM Profile Picture
    90 on at

    For example, I have tried this: I have created a variable that brings me the elements of the list2

     

    Set(
     myprofile;
     LookUp(DDBB; profile= User().Email)
    );;
    


    and with that value make the comparison in the gallery, In items:

     

    Filter(
    DDBB; myprofile.field1=field1;


    but since lookup only returns the first value it finds, it does not filter all the elements.

    That's my problem



  • Verified answer
    Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    Your data source might be large, but do you expect the returned results which match List2 to still be below 2000 records?

     

    If yes, you could use a collection or alternatively use the With function to create a grouping of each category. I am sure there are many other methods, but I tend to use patterns like these:

     

    With:

     

    With(
     {
     wRed: 
     Filter(
     'Your Data',
     Colour = "Red"
     ),
     wBlue: 
     Filter(
     'Your Data',
     Colour = "Blue"
     ),
     wGreen: 
     Filter(
     'Your Data',
     Colour = "Green"
     ),
     wYellow: 
     Filter(
     'Your Data',
     Colour = "Yellow"
     )
     },
     ClearCollect(
     colMyCol,
     wRed,
     wBlue,
     wGreen,
     wYellow
     )
    )

     

    Collection:

     

    Filter(
     col_first_list, 
     'Color' in col_second_list.colors
    )

     

  • SeguM Profile Picture
    90 on at

    Hi, Amik,

    Thanks for the answer, it has been very useful. Best regards.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 421 Most Valuable Professional

#2
11manish Profile Picture

11manish 153 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 116 Super User 2026 Season 2

Last 30 days Overall leaderboard