Filtering The groups

Hi All

I have some issue regarding the idea of filtering for the groups in Revit. Do you have any idea how to filter them in a way that we could dump repeated groups from list. (I am able to do it with the name of the group by using “uniqe items”), but I need just one instance of group with specific id. (this will be use full later on for me to add floors in rooms for that group).

Please help

image

Thank You so much