A handy bit of code. Thank you Sanjeewan!
I have multiple cubes that use the same calculated measures so I just updated the query to add the cube_name and measuregroup_name columns to the SELECT statement. That way I can see which cubes use the calculated measure and which measure groups those calculations are housed under.