cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
BO55VXR
Advocate II
Advocate II

Nested Gallery using same datasource

Hi

 

I am new to power apps (but an experienced developer) and I am trying to set up an that has a nested gallery from the same data source.

 

The primaray data source is a SharePoint (Online) list and my intention is that the main (outer) list is filterer where "Staus = New" and it shows details of the new records ...

 

However, I also want to show what other items (where "status != New") within the same item template but would just be a limited set of fields from the main list.

 

In the image below (done in Exdel), the red outline is the main list item and the blue outline are three other requests for the same person ... but is all in the same data source

 

powerapps question.png

 

I've seen questions on here about nested gallerys but this are all based on parent-child data model .. whereas my data is all in a single SharePoint list

 

Thanks

Chris...

1 ACCEPTED SOLUTION

Accepted Solutions
JRaasumaa
Memorable Member
Memorable Member

So short answer, yes you can have a nested gallery and just simply filter it using your existing colllection/data source.

 

For example: 

 

Say your gallery is using a collection called Requests.

 

You would want your nested gallery to filter based on whatever criteria you'd like, for example the persons name, by changing the nested gallery items to 

Filter(Requests, Name = ThisItem.Name)

 

ThisItem. refers to the current "row" in the gallery and the field you want to look at.

 

Then it's just a matter of doing things like removing the nested gallery padding and lining up the fields you want to show etc.

 

 

Hopefully that helps!

View solution in original post

3 REPLIES 3
JRaasumaa
Memorable Member
Memorable Member

So short answer, yes you can have a nested gallery and just simply filter it using your existing colllection/data source.

 

For example: 

 

Say your gallery is using a collection called Requests.

 

You would want your nested gallery to filter based on whatever criteria you'd like, for example the persons name, by changing the nested gallery items to 

Filter(Requests, Name = ThisItem.Name)

 

ThisItem. refers to the current "row" in the gallery and the field you want to look at.

 

Then it's just a matter of doing things like removing the nested gallery padding and lining up the fields you want to show etc.

 

 

Hopefully that helps!

View solution in original post

Thanks.. WIll give that a try

Worked a treat .. thanks

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

PA Community Call

Power Apps Community Call

Next call is happening on April 21st at 8a PST.

MBAS Carousel

Sign up for our May 4th event!

May the fourth be with you, join us online!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors
Users online (58,961)