I'm having a hard time with something that I think should be pretty simple. I have a collection, MergedScores, that looks like this:
| ParticipantEmail | ParticipantName | TotalQuestionPoints | TotalEventPoints |
| a@null.net | A A | 5 | |
| b@null.net | B B | 5 | |
| a@null.net | A A | | 25 |
I'm trying to group the collection by email, sum up their question and event points into a new TotalPoints column so the above would become
| ParticipantEmail | ParticipantName | TotalPoints |
| a@null.net | A A | 30 |
| b@null.net | B B | 5 |
This is what I think should work, but I just get errors that TotalEventPoints and TotalQuestionPoints aren't recognized.
ClearCollect(GroupedScores,
AddColumns(
GroupBy(MergedScores, ParticipantEmail, ParticipantName, GroupedQandE) As myGrouping,
TotalPoints,
Sum(myGrouping.GroupedQandE, TotalQuestionPoints, TotalEventPoints)
)
);
What am I doing wrong? Thanks.