Grouping with multiple columns works fine only with “matrix”, while using categorical type, data is not having proper hierarchy information added in it.
“matrix” with data and “json” representation for the same with “categorical” type. In the case of multiple columns, you can notice the information about the hierarchy data is missing.