mdx newbie. I have a query which has a date dimension. Years are integers and are in the level CalYear. I'm using Mondrian (via Pentaho)
How do I show years after 2012? The data years with integer values 2012, 2013, 2014. It is a Time dimension; this level is a Year.
If I start from this query:
SELECT
[Measures].[SalesMonth] ON COLUMNS,
{[YearMonth.CalYearMonth].CalYear.members} ON ROWS
FROM [mt_report]
I get a result of three rows.
I try this:
SELECT
[Measures].[SalesMonth] ON COLUMNS,
Filter({[YearMonth.CalYearMonth].CalYear.members},
[YearMonth.CalYearMonth].CalYear.CurrentMember.Value > 0) ON ROWS
FROM [mt_report]
and it returns all data (same as the first query)
but
SELECT
[Measures].[SalesMonth] ON COLUMNS,
Filter({[YearMonth.CalYearMonth].CalYear.members},
[YearMonth.CalYearMonth].CalYear.CurrentMember.Value > 9999) ON ROWS
FROM [mt_report]
but this also returns the same.
This works ...
Filter({[YearMonth.CalYearMonth].[CalYear].Members},
[YearMonth.CalYearMonth].[CalYear].CurrentMember.name > '2012')