Forum Discussion

BossCo's avatar
BossCo
Icon for Helper II rankHelper II
6 years ago

DAX to MDX

Hello everyone. I need to connect my Power BI report to a SSAS cube, but in order to do this I need to translate my measures from DAX to MDX. Now, is there an automatic way of doing this? After years I've been working in DAX is not that easy to me. My DAX query is the following:

 

CALCULATE(AVERAGEX(DIMTABLE,[Amount]),FILTER(ALL(Group),[Amount]>0),DIMTABLE[Group] IN VALUES(DIMTABLE[Group]))

 

Basically, is a group average which keeps aggregated even if I add more granularity (like ID's) to the query.

Any suggestions?

3 Replies