cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
chand72
Regular Visitor

Powerapps gallery to show 2 sharepoint list

I need help on powerapps gallery. I have two Data source which are primary list ConsumableRecord & secondary list ConsumableWithdraw. . The primary list is connected to one gallery and then the secondary list connected to another gallery. The primary gallery when selected a row will provide results in the second gallery. There is a column called masterID in the secondary list which allows the primary list to relate and pull the related line items from the secondary list. Now the user requirement has changed. We need to show a summary of items from both the two sharepoint list.  To workaround i tried a collection called Summaryconsume. Created a new gallery and set formula for the new gallery item property as SummaryConsume and for screen onvisible is ClearCollect(SummaryConsume, ConsumableRecord, ConsumableWithdraw). I get the data but its shows one list after another it doesn't seem to show the relation.

How can i related these into the new gallery?

1 ACCEPTED SOLUTION

Accepted Solutions
v-jefferni
Community Support
Community Support

Hi @chand72 ,

 

Could you please share more details about your scenario? What is the summary details that you would like to display in the new Gallery?

 

Don't understand much about your scenario, but assuming that you want to show 2 list items in a single Gallery, I have a solution. You could add a sub-gallery in the main gallery to display secondary list items that relate to the main list.

201.png

 

On your end:

1\ set the main list as data source of the main gallery.

 

2\ when editing the main gallery, add a sub-gallery, set its items property to:

Filter(SecondaryList, masterID = ThisItem.ID)

Then you will see secondary list items that relate to the main list in the sub-gallery.

 

Hope this helps.

 

Best regards,

Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.

 

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

1 REPLY 1
v-jefferni
Community Support
Community Support

Hi @chand72 ,

 

Could you please share more details about your scenario? What is the summary details that you would like to display in the new Gallery?

 

Don't understand much about your scenario, but assuming that you want to show 2 list items in a single Gallery, I have a solution. You could add a sub-gallery in the main gallery to display secondary list items that relate to the main list.

201.png

 

On your end:

1\ set the main list as data source of the main gallery.

 

2\ when editing the main gallery, add a sub-gallery, set its items property to:

Filter(SecondaryList, masterID = ThisItem.ID)

Then you will see secondary list items that relate to the main list in the sub-gallery.

 

Hope this helps.

 

Best regards,

Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.

 

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (1,827)