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.

 

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.

 

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.

Top Solution Authors
Top Kudoed Authors
Users online (2,121)