In order to create a metric that counts only a single key of a compound key attribute complete the following steps:
Validate the formula and save the metric
- Create an attribute with a compound key
- In the metric editor, drag the attribute to the metric definition
- Consider the following: if the attribute you created is made of the keys "ID" and "ID1", and you would like to consider only the first key, the following formula should be used: "count(distinct attribute@ID)"
- On the metric definition, right click on "Count", and select "Count Parameters" as shown in the image below: