Hello,
What I have is a galleryGrid gallery which is populated with the data from colGridData.
This collection consists of multiple columns but the most important is Title, and field_3 (which in my sharepoint list is called Circle).
Below is a sample based on these two columns.
| Title | Circle (field_3) |
| 1H2021 | 10 |
| 1H2021 | 16 |
| 2H2021 | 32 |
I need to perform following operations on these data:
1) Firstly, I group by this collection so after this step I get:
| Title | Circle (field_3) |
| 1H2021 | 26 |
| 2H2021 | 32 |
2) Secondly, I need to take the average of this two rows so my final result will be 29.
I thought that I found what I was looking for and I've tried to use this query in different forms but each time I'm not able to receive field_3 column from Data to sum it up and then proceed with these values.
AddColumns(
GroupBy(
galleryGrid.AllItems,
"Title", "Data"),
"Total Circle",
Sum(Data.field_3)
)

It seems like a problem is I can not access anything from "data" group.
I started using PowerApps a week ago so I'm not familar with some of concepts.