Views contextual filters summary display nodes id instead of title
I have found how to do it. Firstly, I added the relation between customers and groups in the "relation" section. After this, instead of adding the relation field as contextual filter, I added the title field as contextual filter, but I checked the relation I have created. Then, when the argument is not present, It shows a list of groups (with their names) and the count of record.