(Only because I had the data already mocked from a previous answer :) )
UI: Nested Gallery
PowerFX: Exactly as @carlosfigueira mentioned
Assuming colData
is the data shown in original post
galParent
to GroupBy(colData, "principalDisplayName", "group")
galChild
to ThisItem.group
Visual