Dear All,
I want to create a report that sum ytd value by parameters (by year &
month). I set the @YearNum first and then below message return.
Do you know what is the problem?, I have tested in fews days. Please help &
many many thanks.
Parser: The query contains the YearNum parameter, which is not declared.
Execution complete
WITH
MEMBER [Measures].[YTD KGS] AS 'Sum(PeriodsToDate([Dim Time].[Month Full
Name].[Month Full Name]), [Measures].[KGS])'
MEMBER [Measures].[YTD Amount] AS 'Sum(PeriodsToDate([Dim Time].[Month Full
Name].[Month Full Name]), [Measures].[Amount])'
SELECT
NON EMPTY { [Measures].[YTD KGS] ,[Measures].[YTD Amount] } ON COLUMNS,
NON EMPTY { ([Dim Customer].[Customer Name].[Customer Name].ALLMEMBERS
* [Dim Time].[Calendar Year].[Calendar Year].ALLMEMBERS
* [Dim Time].[Month Full Name].[Month Full Name].ALLMEMBERS
* [Dim Cntr Mode].[Cntr Mode App].[Cntr Mode App].ALLMEMBERS ) }
DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS
FROM ( SELECT ( STRTOSET (@YearNum, CONSTRAINED) ) ON COLUMNS
FROM [Customer Volume View])
where ([Dim Time].[Calendar Year].[Calendar Year], ( STRTOSET(@YearNum,
CONSTRAINED)))
CELL PROPERTIES VALUE,
BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING, FONT_NAME,
FONT_SIZE, FONT_FL