Hi,
I am trying to implement a custom drillthrough in SSAS. The idea is do the drill down via relational db rather than analysis services db. I have imported the SQLQuery Assembly and it works fine. I have created a stored procedure in the Relational DB that takes parameters to return the data for that drill down. The stored procedure returns records for the particular fiscal year selected in the pivot. The problem I have is when I try to pass on the values from the Excel pivot selected Filters, I get the error above mentioned error.
"call SQLQuery.ExecuteSql(
'provider=sqlncli11;server=10.10.10.10;database=MyDataMart;trusted_connection=yes'
,' Exec SP_GetCasesDrillthrough '+ [Time].[Fiscal Year] )"
I think the problem is likely around the syntax of the MDX expression I am using to get values of the fiscal year (in this case). It seems its a context issue and I tried the using the cube name like ' [CubeName].[Time].[Fiscal Year] or
[Time].[Fiscal Year].CURRENTMEMBER.MEMBER_CAPTION
or
[CubeName].[Time].[Fiscal Year].CURRENTMEMBER.MEMBER_CAPTION
Error when clicking on the Additional Action >> Action menu
I get same error I try to execute the expression SSMS. Without MDX it works fine.
Any help in resolving this error is highly appreciated!
- Edited by Tahir Naeem Tuesday, April 28, 2015 9:51 AM