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 / Powerapps help, Filter...
Power Apps
Answered

Powerapps help, Filtering a gallery using two SharePoint lists

(0) ShareShare
ReportReport
Posted on by 308

 Hi

 

I have 2 SP lists (cadProjetos and cadEquipe), the first with ID and projects and another with child items (team names in each project and RefIdProj child form ID first list).

 

I need to filter a gallery for shows only projects from first list where current user integrate the project team (second list)

 

I'm trying this formula: 

 

        Filter(cadProjetos; ID in Filter(cadEquipe; varUser in Integrante.Email).RefIdProj))
        varUser = current user email  - Set(varUser; User().Email) in onstart from app

 

I read that both columns need to be same type, but my first one ID is the ID regular SP, and the other is a consult column from first.

 

Appreciate any help.

Thank you all

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    155,374 Most Valuable Professional on at

    Hi @alessandramaced ,

    I assume you are dealing with a Person field in the second list - try this

    Filter(
     cadProjetos; 
     ID = 
     LookUp(
     AddColumns(
     cadEquipe; 
     "Inter";
     Integrante.Email
     );
     Inter = varUser
     ).RefIdProj
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

  • alessandramaced Profile Picture
    308 on at

    Didn't work for me. Don't show anything in gallery. Should show 2 items.

  • Verified answer
    WarrenBelz Profile Picture
    155,374 Most Valuable Professional on at

    @alessandramaced ,

    If there was no error, please look at the accuracy of your values. Person fields are problematic at best when you try to manipulate data with the values in them (I do not use them) , however I was using your values and if they are correct, it should produce the results.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

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 834

#2
Valantis Profile Picture

Valantis 533

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard