select MAX(InsertionDT),TaskStatus,tasksubstatus from TransTasksFFMS_GVT where TaskCode =323155groupby TaskStatus,tasksubstatus
To use this query in the cube browser I have created a name query and used it as a dimension and it works, however I'm asked to do the calculation as a measure. Is it possible to translate this query to mdx to use it as the expression in a calculation?
What the query does: Returns the max insertion date for a each pair of status and sub status.
I'm new to MDX and to the whole cube idea!