I am in the middle of learning SASS, and MDX has turned out to be a huge nut for me to crack.
I want to implement a drillthrough action which is shown only when the Calendar year is 2005. (Just for the practice)
Yet even this supposedly simple task is proving quite the difficult thing for me to do.
My MDX condition is as follows:
IIF([Date].[Calendar].[Calendar Year].CURRENTMEMBER IS [Date].[Calendar].[Calendar Year].&[2005], TRUE, FALSE)
I am using the adventureworks database as my basis for these practices.
My Code doesnt set off any errors, so I guess that the names are correctly written, but with this and similar attempts I simply get no drillthrough action made available in the cube browser.
Assistance anyone?
//////////////////////////////////////////////////////////////////////////////////////
I think i may have found the answer myself.
Seems that I was not meant to include the [Calendar Year] member in the when searching for CURRENTMEMBER:
Ergo: IIF([Date].[Calendar].CURRENTMEMBER IS [Date].[Calendar].[Calendar Year].&[2005],TRUE,FALSE)
Can anyone explain the reason for this? Because I am rather confused.
//////////////////////////////////////////////////////////////////////////////////////