cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
alessandramaced
Helper IV
Helper IV

Powerapps help, Filtering a gallery using two SharePoint lists

 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

2 ACCEPTED SOLUTIONS

Accepted Solutions
WarrenBelz
Super User III
Super User III

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.

 

View solution in original post

@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.

View solution in original post

3 REPLIES 3
WarrenBelz
Super User III
Super User III

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.

 

View solution in original post

alessandramaced
Helper IV
Helper IV

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

@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.

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Top Solution Authors
Top Kudoed Authors
Users online (1,911)