Hi,
I'm having a problem when trying to use LastNonEmpty function in a TopCount.
The query is:
I'm getting this error: Expected value of type MEMBER; got value 'mondrian.olap.fun.MondrianEvaluationException: Exception while executing function LastNonEmpty.
If I replace the LastNonEmpty function in the topcount part, the query works fine.
Thanks!
I'm having a problem when trying to use LastNonEmpty function in a TopCount.
The query is:
Code:
select NON EMPTY Crossjoin( {LastNonEmpty(
Descendants(
[DIM_TIEMPO].CurrentMember, [DIM_TIEMPO.TIEMPO].[Mes]
)
,[Measures].[MEASURE1]
)}.item(0),
{[Measures].[MEASURE1],[Measures].[MEASURE2]}
) ON COLUMNS,
NON EMPTY TopCount([DIM_AGENT.AGENT_TYPE].[BANK].Children,
20.0,
({LastNonEmpty(
Descendants(
[DIM_TIEMPO].CurrentMember, [DIM_TIEMPO.TIEMPO].[Mes]
)
,[Measures].[MEASURE1]
)}.item(0), [Measures].[MEASURE1])) ON ROWS
from [POLIZA_AUTOS]
If I replace the LastNonEmpty function in the topcount part, the query works fine.
Thanks!