I created a gallery called GLDatatable and I am trying to group the last column, Status, of the table to show Project Status. But instead of grouping this column by Active, Closed, Cancelled, or Hold, it places the status across all my columns horizontally. The groupby format I'm using is in red below: Without the Groupby, my formula works perfectly for what I'm trying to do.
Here is an example without Groupby.

And here is my code. When I add the Groupby in Red, groupby is not working properly
Groupby(
Filter(
Switch(
locSortColumn,
"Title", Sort(ccCatalog, 'Project Name', If(locSortAscending, Ascending, Descending)),
"ISSR Number", Sort(ccCatalog, 'ISSR Number', If(locSortAscending, Ascending, Descending)),
"Your Department", Sort(ccCatalog, 'Your Department', If(locSortAscending, Ascending, Descending)),
"Your Name", Sort(ccCatalog, 'Your Name', If(locSortAscending, Ascending, Descending)),
//"Project Status", Sort(ccCatalog, ProjectStatus.Value, If(locSortAscending, Ascending, Descending)),
ccCatalog
),
User().FullName in TISO,
Created >= DPStartDT.SelectedDate && Created <= DPEndDT.SelectedDate,
TXSearchDT.Text in 'ISSR Number' || TXSearchDT.Text in 'Project Name' || TXSearchDT.Text in TISO || TXSearchDT.Text in 'Your Name' || TXSearchDT.Text in 'Your Department',
If(IsBlank(DDProjectStatusDT.Selected.Value), true, 'Project Status'.Value = DDProjectStatusDT.Selected.Value)
),
"Project Status",
"GRPStatus"
)