Hi, I am trying to Add additional Columns "Approved" and "Pending decision" according to items status and Client Name, I was able to get it working however the count of the items is the same all across the rows and it seems it is not filtering the Client accordingly, this is the code I am using on start... I am adding the column inside colBillings that is afterwards Grouped into another Collection colDashboard that is afterwards displayed in Table's Items property:
ClearCollect(
colDashboard,
GroupBy(
AddColumns(
colBillings,
"Client",
ClientName,
"RequestorName",
RequestedBy.DisplayName,
"Pending",
CountRows(
Filter(
colBillings,
ClientName = ClientName,
DocumentStatus = "Pending decision"
)
),
"Approved",
CountRows(
Filter(
colBillings,
ClientName = ThisRecord.ClientName,
DocumentStatus = "Approved"
)
)
),
"Client",
"RequestorName",
"Pending",
"Approved",
"GroupData"
)
);
Here I would like to have the count to be filtered correctly by Client name:

Thanks a lot for your help,
BR,
Michal