I am trying to create application that count ID number based on different services, the idea is to count the ID for each service but without duplicate if they were under same project otherwise count all IDs, also if the ID have 2nd round in different project to count it as new ID example below: