How it works...

In our My Calc Debug measure, we simply take the individual calculation components present in our My Calc measure and separate each part of the calculation into its own variable using VAR. Thus, when debugging our measure, we can comment out the normal RETURN line using // or even /* */ and return any of our variables. In this way, we can check parts of the entire calculation in order to determine where there might be a problem.