Hi,
so I have a problem with grouping my nested gallery correctly within my application made using PowerApps for Teams.
Following scenario:
I've got 2 tables: streams and activities.
The streams only have a title column.
The activities have a title and a quarter number field (1 to 4).
Every gallery involved is a flexible height gallery.
There is one-to-many relationship configured between streams and activities.
- Within my top gallery, my items are set to:
streams
- Inside the top gallery template, I've added another gallery (refered as nested gallery ongoing) and set the items to:
GroupBy(ThisItem.activities; "cr1fd_quarter"; "actByQuarter")
- Inside the nested gallery template, I've added a label control and set the text to:
"Quarter " & ThisItem."cr1fd_quarter"
- I've added another gallery within the nested gallery (refered as third gallery) and set the items to:
actByQuarter
- Within the third gallery template I've added the activity title as label with text set to:
ThisItem.Title
Unfortunately this whole thing is not working as expected. What I want to achieve is the following pattern:
- Stream title (top gallery, streams)
- Quarter 1 (nested gallery, ThisItem.activities grouped by quarter)
- Activity title of an activity in q1 (third gallery, grouped activity title)
- Activity title of an activity in q1 (third gallery, grouped activity title)
- Quarter 2 (nested gallery, ThisItem.activities grouped by quarter)
- Activity title of an activity in q2 (third gallery, grouped activity title)
- Stream title (top gallery, streams)
- Quarter 1 (nested gallery, ThisItem.activities grouped by quarter)
- Activity title of an activity in q1 (third gallery, grouped activity title)
Does anybody know what I'm doing wrong?