I have a fetchXML that returns data like this

wondering if I can get distinct group IDs using the same fetchXml by using some filter or otherwise have to write a separate query to get distinct groups?
*This post is locked for comments
I have the same question (0)