0

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.

4

1 回答 1

0

[Forecast].[Date Recorded] 成员中是否有任何空值或“非日期”值?当您在多维数据集上将其作为 MDX 查询运行时,这是否有效?

于 2013-01-02T09:25:09.560 回答