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

mdx to Calc Member question.

$
0
0

I have 2 dimensions, date dim & StatusType dim, and a measure, [Count_ROCANCELED] . 

The following mdx works fine.  i like to put it in the calc member, so, when user drop the calc member it can be sliced by the date dim with that "filter" of [StatusType].[Status Date Type Desc].&[CANCELED] .

what is the correct syntax for the calc member? In the process I will need to keep the date hierarchy. thanks.

 SELECT NON EMPTY { [Measures].[STCount_ROCANCELED] } ON COLUMNS, NON EMPTY { ([Date--LinkedStatusType].[YMD].[Month Number Of Year].ALLMEMBERS ) } DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS FROM ( SELECT ( { [StatusType].[Status Date Type Desc].&[CANCELED] } ) ON COLUMNS FROM [SOS OLAP]) WHERE ( [StatusType].[Status Date Type Desc].&[CANCELED] ) CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGS


-- IBM has jobs for USA employee to work oversea (India) and get their wages.



Viewing all articles
Browse latest Browse all 14337

Trending Articles



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