I am trying to build a collection to use in my app and can not figure out why I am getting the red lines. It has to do something with the data type I think. I am just tired and need a little help,
I create a Collection called records which is pulling all the info from SPO List. From that collection I am trying to make few others.
The TotalRecordsCategory Collection is the one that is not working. category from the records collection is a table(Choice Column from SPO List). I want to make a collection with two columns. Number count and Category, need to know how many of each category.
Once I get this working then i can apply same coding to another collection that will be looking at status and getting number of each also. This will be used in a graph later in the app.
//Create Collection from SPO List
ClearCollect(Records, HelpDesk);
//Create Collection Ticket number asigned
ClearCollect(Ticketype,
{Type:"Total Tickets"},{Type:"Assigned to me"});
//Create Collection Category of Tickets Type
ClearCollect(TicketCategory,Distinct(Records,category));
//Create Collection Total number of each Category
ClearCollect(TotalRecordsCategory,ShowColumns(
AddColumns(
GroupBy("NUM","category"),
"NUM",
CountRows(category)
),
"NUM",
"Category"
));