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

Row number to MDX query

$
0
0

Hey how do i add a row number to my MDX query i like it to return the row number for the number of rows returned.

Eample

Row_no

1

2

3

 SELECT
 NON EMPTY { [Measures].[Sales_val], [Measures].[Cost_val], [Measures].[Profit_val] }
 ON COLUMNS,
 NON EMPTY
 { ([Date].[Week].[Week].ALLMEMBERS * [Date].[Date].[Date].ALLMEMBERS * [Date].[Day Of Week].[Day Of Week].ALLMEMBERS * [Dept].[code].[code].ALLMEMBERS ) }
 DIMENSION PROPERTIES MEMBER_CAPTION,
 MEMBER_UNIQUE_NAME ON ROWS
 FROM
 ( SELECT ( { [Date].[Previous Date Flag].&[Y] } )
 ON COLUMNS
 FROM [Dev Cube])
 WHERE ( [Date].[Previous Date Flag].&[Y] )
 CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR,
 FORMATTED_VALUE, FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGS


Viewing all articles
Browse latest Browse all 2472

Trending Articles



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