We are using following MDX to create dynamic named set to generate future dates for one of our cube -
LASTPERIODS(100, STRTOMEMBER("[Calenar].[Calendar Date].&[" +
CSTR(FORMAT(DATEADD("D",100,[Forecast].[Date Recorded].CURRENTMEMBER.MEMBERVALUE),
"yyyy-MM-ddT00:00:00")) +
"]"))
Above query expression executes successfully in MDX Query Analyzer. But after cube is processed successfully, we are facing issue while browsing the cube and getting following error:
- Error occurred retrieving name set: Execution of the managed stored procedure DATEADD failed with following error 'Microsoft::AnalysisServices::AdomdServer::AdomdException
- Internal Error : An external component returned an error (HRESULT = ).
- The following system error occurred: Type Mismatch
Any help on this will be highly appreciated.
Referenced Link - MDX Named Set Rolling Date Range
Thanks,
Kinjal.