Hi - I have the following cell formula, working in Excel 2010 (I'm breaking it across multiple lines here, for readability):
=IF(J36="MB",
CUBEMEMBER("SIP","[Products].[Package].&[PC_MB-MB]","MB"),
CUBESET("SIP","Except([Products].[Package].[All].children,[Products].[Package].[PC_MB-MB])","Non-MB")
)
There are about 100 different packages, and initially we were only interested in one (MB) or "all others" (the 99 non-MB)
Now we need to include MB and BB, and the second part of the formula should exclude both MB and BB. I'm have only basic experience with cubeformula syntax, so I'm looking for any helpful pointers. The first half of the equation I can just hack by making two calls and adding the results together- although I welcome a better way to do this:
CUBEMEMBER("SIP","[Products].[Package].&[PC_MB-MB]","MB")+
CUBEMEMBER("SIP","[Products].[Package].&[PC_MB-BB]","MB")
but excluding two different packages from the second part of the formula has me stuck, and I think this is really just a syntax question about where to put the brackets and quotes
CUBESET("SIP",{"Except([Products].[Package].[All].children,[Products].[Package].[PC_MB-MB])","Except([Products].[Package].[All].children,[Products].[Package].[PC_MB-BB])"},"Non-MB")
Thank you for any assistance!