WHERE Parameter("nYear", NUMERIC, [Dim Date.YearNum].[All Dim Date.YearNums].[2013]),
[Dim Date.MonthName].[All Dim Date.MonthNames].[November])
generates an error about failure to parse, but the key portion of it seems to be
Caused by: mondrian.olap.MondrianException: Mondrian Error:No function matches signature '(<Numeric Expression>, <Member>)'
at mondrian.resource.MondrianResource$_Def0.ex(MondrianResource.java:969)
at mondrian.olap.ValidatorImpl.getDef(ValidatorImpl.java:205)
I've tried wrapping the default value in quotes. I've tried wrapping the entire Parameter call in a strToMember(). I've tried ... really a lot of things.
I've tried looking at the code ... and have run ant and built MondrianResource.java ... but that has not revealed the syntax. mondrian.olap.Parameter.java does not appear to help ... mondrian.olap.ParameterImpl.java has a constructor that takes String name,
Exp defaultExp,
String description,
Type type)
but that doesn't really help either.
So, what is the valid syntax?
Thanks!
[Dim Date.MonthName].[All Dim Date.MonthNames].[November])
generates an error about failure to parse, but the key portion of it seems to be
Caused by: mondrian.olap.MondrianException: Mondrian Error:No function matches signature '(<Numeric Expression>, <Member>)'
at mondrian.resource.MondrianResource$_Def0.ex(MondrianResource.java:969)
at mondrian.olap.ValidatorImpl.getDef(ValidatorImpl.java:205)
I've tried wrapping the default value in quotes. I've tried wrapping the entire Parameter call in a strToMember(). I've tried ... really a lot of things.
I've tried looking at the code ... and have run ant and built MondrianResource.java ... but that has not revealed the syntax. mondrian.olap.Parameter.java does not appear to help ... mondrian.olap.ParameterImpl.java has a constructor that takes String name,
Exp defaultExp,
String description,
Type type)
but that doesn't really help either.
So, what is the valid syntax?
Thanks!