cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
BO55VXR Helper II
Helper 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
Highlighted
JRaasumaa Memorable Member
Memorable Member

Re: Nested Gallery using same datasource

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
Highlighted
JRaasumaa Memorable Member
Memorable Member

Re: Nested Gallery using same datasource

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

BO55VXR Helper II
Helper II

Re: Nested Gallery using same datasource

Thanks.. WIll give that a try

BO55VXR Helper II
Helper II

Re: Nested Gallery using same datasource

Worked a treat .. thanks

Helpful resources

Announcements
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Power Platform 2020 release wave 1 plan

Power Platform 2020 release wave 1 plan

Features releasing from April 2020 through September 2020

Top Solution Authors
Top Kudoed Authors
Users online (6,469)