MDX measure to DAX conversion
MDX &amp; DAX are query languages for OLAP cubes. 

MDX is used on multidimensional OLAP cubes and is used by many vendors.

DAX is Microsofts own query language and can only be used in a tabular OLAP cube or within Excel. 

Assuming you are using Microsoft  SSAS you must choose which type of cube you want when you install SSAS.

If you (or someone else) has already installed SSAS then you need to find out   if its Multidimensional or Tabular, and then use the appropriate query language.