Analyzing the performance of DISTINCTCOUNT in DAX

Analyze the performance of a DAX measure based on a DISTINCTCOUNT calculation and evaluate possible optimizations.