cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SG1990-1
Regular Visitor

Linking 2 Galleries and referencing a label

I am unsure if the following is possible but I would be grateful for some guidance either way:

 

I have a gallery (gallery1), which has a sub total label, which is the sum of numerous other complicated labels.

I also have a second gallery (gallery2), which should summarise all the sub totals from Gallery 1.

 

However, I cannot seem to find a way to link them together. If I just use the formula “LabelSubTotal1.text” this just returns the subtotal from the first row in gallery1 to every row in gallery 2 .

 

Does anyone know a solution for this?

3 REPLIES 3
eka24
Super User III
Super User III

On your second Gallery put: Filter(TableName, IDColumn=Gallery1.Selected.ID)

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Thanks for your comment @eka24 .

 

Apologies I am quite new to Powerapps and only recently started using galleries.

Am I correct in saying you want me to put the formula into the "items" section of the gallery as opposed to the label?

Additionally, not sure if this causes an issue but my items section for gallery 1 uses a 'group by' formula. 

I have tried putting the below formula into "items" of gallery2 but this produces lots of rows with exact same company name on.

 

filter('property database', 'Company'=Gallery1.selected.'Company)

 

May be I didn't understand you. You have totalLabel in Gallery1, you want to show the total of those labels in Gallery2?

Can you show the full group by formula you have. Also the sample table you have.

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

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 (1,915)