Optimizing DAX queries





Enclose code in comments with <PRE></PRE> to preserve indentation.