I am developing the SSRS 2008 reports which have OLAP Cube as database, so one of my report uses below MDX query.
SELECTNONEMPTY { [Measures].[Delivered Sales], [Measures].[Quantity Sold]}ONCOLUMNS,
NONEMPTY {STRTOSET(@RetailItemMasterAFIFinanceDivision,CONSTRAINED) } ONROWS
FROM [Homestore Sales]
Where (STRTOSET(@HomestoreOperationsOperation,CONSTRAINED) , STRTOSET(@HomestoreOperationsStoreLocation,CONSTRAINED),
STRTOSET(@HomestoreOperationsProfitCenter,CONSTRAINED), STRTOSET(@RetailItemMasterSeriesNumber,CONSTRAINED),
STRTOSET(@RetailItemMasterItemID,CONSTRAINED),
STRTOMEMBER("[Time Periods].[Fiscal Month Desc].&["+@FromMonth+", "+@FromYear+"]") :
STRTOMEMBER("[Time Periods].[Fiscal Month Desc].&["+@ToMonth+", "+@ToYear+"]"));
MDX uses around 10 parameters, if user select few values for each parameter then report executes in few seconds. But when user select all values for each parameter then report gives timeout error.
I think report is giving “Time Out” error because I am passing this huge parameter value selection to MDX query from report.
I need your help to improve the performance or to change the syntax of MDX query or some alternative approach when MDX query have huge parameter selection it should work.
I really appreciate all your inputs.
Amit