I have one list of events people can sign up for, and another list of the total people who have signed up for an event.
The first collection works. It sums the total signers for an event.
ClearCollect(TotalSignees, AddColumns(GroupBy(SignUpList, "EventName", "TotalSignees"), "NumOfSignUps", Sum(TotalSignees, EventName = EventName)));
The second collection does not work. It's adding a number to every item on the list regardless of the event
ClearCollect(ProjectSignUpListWithVolunteerCount, AddColumns(ProjectsEventsList_SPList, "NumOfSignUps", LookUp(TotalSignees, EventName=EventName, NumOfSignUps)));
All I want to do is merge the collections and if there is match insert that number into the column and if there there are no matches add a zero
Solved! Go to Solution.
Hi @Becca51178 ,
You can merge two collections with the same field names by collecting them separately and then doing ClearCollect(Collection1,Collection2).
You can use RenameColumns and AddColumns to achieve this result.
Here is a post to read on it.
Please click and accept as Solution if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a Thumbs Up.
Thank you!
This Worked
ClearCollect(ProjectSignUpListWithVolunteerCount, AddColumns(ProjectsEventsList_SPList, "NumOfSignUps", LookUp(TotalSignees, EventName = ProjectsEventsList_SPList[@EventName], NumOfSignUps)));
User | Count |
---|---|
263 | |
110 | |
92 | |
55 | |
41 |