Quantcast
Channel: SQL Server Analysis Services forum
Viewing all articles
Browse latest Browse all 14337

Simple sql to mdx query

$
0
0
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!


Viewing all articles
Browse latest Browse all 14337


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>