I want to group the "Incident Types" in the PowerApps collection shown below and sum the first column which is the "Incident Count". I have attempted to use the Group By function, but I was unable achieve the desired result. I simply want the total "Incident Count" for all "Incident Types".
Thanks
This is an example of a grouping I have here with a count column:
ClearCollect(colGroupsRelation,
SortByColumns(
AddColumns(
GroupBy(colAppServersRelationAll, "ServerID","ServerGroup"),
"AppCount",
CountRows(ServerGroup)
),
"AppCount", Descending)
);
To Explain:
You case might be like
AddColumns(
GroupBy(YourDataSource, "Incident Types","IncidentTypesGroup"),
"IncidentCountTotal",
Sum(IncidentTypesGroup,IncidentCount)
)