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 / Collection not pulling...
Power Apps
Unanswered

Collection not pulling in information from a lookup

(0) ShareShare
ReportReport
Posted on by 546 Super User 2024 Season 1

I'm building a collection from a list of projects, trying to calculate the number of projects being sponsored by various areas of the business.  This is being determined by who the Executive Sponsor is - a Person field from the master list of projects.  In a separate list of contacts, I have the name of the Business Area they represent, and a "Resource" field (a Person field from a SP list).

 

Everything seems to be working well with one exception: in my collection, I want to include the name of the Business Area as a column.  Problem is that no matter what I try, it doesn't appear to be performing the LookUp properly into the contacts list, the BusinessArea column always comes out blank.  Here is my code:

With(
 {
 wCounts: AddColumns(
 GroupBy(
 AddColumns(
 'AES Global Portfolio',
 "ESGB",
 'Executive Sponsor'.DisplayName
 ),
 "ESGB",
 "GroupedItems"
 ),
 "AreaCount",
 CountRows(GroupedItems)
 )
 },
 ClearCollect(
 colBusinessAreaCounts,
 AddColumns(
 Distinct(
 'AES Global Portfolio',
 'Executive Sponsor'
 ),
 "SponsoredCounts",
 LookUp(
 wCounts,
 ESGB = Result.DisplayName
 ).AreaCount,
 "BusinessArea",
 LookUp(
 'Hot Add Controls',
 Title = "Executive Sponsor" && Resource.DisplayName = Result.DisplayName,
 Team
 )
 )
 )
)

That last LookUp into Hot Add Controls is the part that isn't working properly, it isn't returning the Team (Business Area)

 

Here is what my Collection looks like:

zuurg_0-1664402336133.png

That Result record in the Collection is showing the distinct Executive Sponsor record and the counts are correct.  Just need to get that Business Area working.

Categories:
I have the same question (0)

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