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.
ClearCollect(ProjectSignUpListWithVolunteerCount, AddColumns(ProjectsEventsList_SPList, "NumOfSignUps", LookUp(TotalSignees, EventName = ProjectsEventsList_SPList[@EventName], NumOfSignUps)));
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Join us on June 28 for our monthly User Group leader call!
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.