Quantcast
Channel: Pentaho Community Forums
Viewing all articles
Browse latest Browse all 16689

Issue with LastNonEmpty

$
0
0
Hi,

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]

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!

Viewing all articles
Browse latest Browse all 16689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>