cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

How to make a gallery obtaining data from two Sharepoint lists

How to make a gallery obtaining data from two Sharepoint lists in the same gallery. All this with its view and edit forms.

 

For example:

List01

List02

4 REPLIES 4
Highlighted
Super User III
Super User III

Hi @Rob_G ,

That depends on what relationship the tables have. You need a "common key" (which needs to be 1:1) to lookup the related value in List02 and display it beside the value in List 01 in the gallery. Does this apply to your lists?

Highlighted

Hi @WarrenBelz 

Yes, this name colums as:

List01: ID1

List02: IDped1

Highlighted

Thank2 @Rob_G ,

The syntax is below - note you do not have to call the added column the same name as it is in List2

AddColumns(
   List01,
   "YourAddedName1",
   Lookup(
      List02,
      IDPed1=ID1,
   ).YourList2Name1,
   "YourAddedName2",
   Lookup(
      List02,
      IDPed1=ID1,
   ).YourList2Name2
)

 

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.

Highlighted

Hi @Rob_G ,

Just checking if you got the result you were looking for on this thread. Happy to help further if not.

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.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (7,665)