Quantcast
Channel: SQL Server Analysis Services Forum
Viewing all articles
Browse latest Browse all 2472

MDX query for Concatinating Date parts

$
0
0

HI All,

I am runnning the following MDX query, but I am not getting the expected output.

WITH  MEMBER [Measures].[Full Date] as 'NOW()'

MEMBER [Measures].[What Day] as 'DAY([Full Date])'

MEMBER [Measures].[What Month] as 'MONTH([Full Date])'

Member [Measures].[What Year] as 'YEAR([Full Date])'

MEMBER [Measures].[Test] as 
[What Day] + "-"  + ([What Month])  + "-"  + ([What Year]) 

SELECT
   {[Full Date],[What Day],[What Month],[What Year],[Test]} ON COLUMNS
FROM [Adventure Works]

For the Test measure I want the output as 10-1-2013, rest of the Measures giving the correct answer.

I want to concatinate the rest measure into the Test measure and want that result.

Please help me to accompolish this.


Sudipta Ghosh Tata Consultancy Services


Viewing all articles
Browse latest Browse all 2472

Trending Articles



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