SYMPTOM:
When creating a count distinct metric on an attribute, the report will return aggregatable null values when any attribute is removed from the template. The metric will display correct values when every attribute is on the template, but as soon as any attribute is removed from the template the report returns aggregatable nulls.
STEPS TO REPRODUCE:
The desired results of this report is to count the distinct subcategories despite what level the report is. Follow the steps below to reproduce this issue in Strategy Tutorial:



CAUSE:
The reason this report is returning aggregatable nulls is because the metric is improperly defined. When the metric has the level of the metric to include the report level, this means that the lowest level of each hierarchy is to be considered in the calculation. In this example, the only level that matters is the subcategory which is not in the time hierarchy.
ACTION:
For the report to return the desired results, the subcategory is the only level that needs to be set. Therefore, remove the report level from the metric
Additionaly, change the 'Dynamic aggregation function:' of the metric to Sum rather than Default.