I am new to SSRS, i make a report used three parameter FromDimDateDateKey,ToDimDateDateKey and InstrumentSName, and i got error that query execution failed for my DataSet and query (1,343) the restrictions imposed by the CONSTRAINED flag in the STRTOSET function were violated. what should i do ? anybody can help me ?
this is My MDX Query :
SELECT
NON EMPTY { [Measures].[Price] } ON COLUMNS,
NON EMPTY {
(
[DimDate].[Date Key].[Date Key].ALLMEMBERS *
[Dim Instrument].[Instrument Code].[Instrument Code].ALLMEMBERS *
[Dim Instrument].[Instrument S Name].[Instrument S Name].ALLMEMBERS
)
} DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_VALUE, MEMBER_UNIQUE_NAME ON ROWS
FROM(
SELECT(
STRTOSET(
@DimInstrumentInstrumentSName,
CONSTRAINED
)
) ON COLUMNS
FROM(
SELECT(
STRTOMEMBER(@FromDimDateDateKey, CONSTRAINED):
STRTOMEMBER(@ToDimDateDateKey, CONSTRAINED)
) ON COLUMNS
FROM [CUBE_SIAPDW]
)
) CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGS