QL group by with different settings

Hello together

I would like to “group by” with two different group settings eg:

first group just 1 result of group a
AND
second group 3 results of group b

Is that possible? Have anyone an idea to solve this?

btw. using the QL version
regards Peter

Hi. It’s not quite clear what you mean. Can you provide an example of the records you have and what you want to get in the end?
BTW are you aware of FACET command? Can it be what you’re looking for?