Hi Leandro,
If you want to use *SELECT with a distinct criteria, you'll have to create first a property within that dimension which will be use as filter. Let's say you have a property in your dimension ServiceType called "PROPERTY" and you want to select all members with a value "A" under that property, your code should look like below:
Syntax: *SELECT (, , , )
Sample: *SELECT(%MyServiceType%, "[ID]", "ServiceType", "PROPERY='A'")
Hope this helps,
Marvin