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 / Add a column to galler...
Power Apps
Unanswered

Add a column to gallery from different list

(0) ShareShare
ReportReport
Posted on by 1,168

Hi,

Trying to get the formula right for adding a field to a gallery that is from a different source than the "primary source" of the gallery. This would also involve a query I guess for each record in the gallery.

 

Basically I have a gallery of Accounts and I want to put the primary contact in to each record in the gallery under the Account Name.

 

To get that I need to take the name of the account in the current gallery then query a different list and say give me the name of the person who has the same account as above and also has Yes or Tick (Yes No Box) next to the column that says Primary Contact.

 

My attempt so far is but it contains no queries 'Contact Accounts'[@Contact].Value

 

For the record the name value in the different list is a lookup from another list.

 

Thanks in advance for any assistance

 

Todd

Categories:
I have the same question (0)
  • EddieE Profile Picture
    4,641 Moderator on at

    @Tango 

    What data source are you using? If Dataverse, try asking in this forum as you'll typically find users with more Dataverse experience than in this forum:

     

    https://powerusers.microsoft.com/t5/Microsoft-Dataverse/bd-p/CDS_Apps

     

  • Tango Profile Picture
    1,168 on at

    Datasource is SharePoint lists

  • EddieE Profile Picture
    4,641 Moderator on at

    @Tango 

    Try this in the Items property of your gallery

     

    AddColumns(
     Accounts,
     "ContactName",
     LookUp(
     Filter(List2, Account = Account && 'Primary Contact'.Value = "Yes"),
     Contact
     )
    )

     

     

    EDIT: Then add a label to your gallery with the Text property

     

    ThisItem.ContactName

     

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

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 333 Most Valuable Professional

#2
11manish Profile Picture

11manish 184

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 86 Super User 2026 Season 1

Last 30 days Overall leaderboard