Convert basic DAX expression patterns into MDX drafts for OLAP cubes and Analysis Services. This is a rule-based helper, not a complete semantic translator.
Use it as a starting point when moving calculations between tabular and multidimensional models. Validate the result against the target cube.
SUM() → SUM()AVERAGE() → AVG()DIVIDE(x,y) → IIF(y = 0, NULL, x / y)IF() → IIF()'Table'[Column] → [Table].[Column]BLANK() → NULLCALCULATE() — context functionsALLEXCEPT() — context modifiersKEEPFILTERS() — filteringTREATAS() — table relationshipsUSERELATIONSHIP() — relationship activation| DAX | MDX |
|---|---|
SUM('Sales'[Amount]) |
SUM([Sales].[Amount]) |
AVERAGEX(Table, Expression) |
AVG([Table], [Expression]) |
IF(Condition, True, False) |
IIF(Condition, True, False) |
BLANK() |
NULL |
Free tools for analysts and developers