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

All Years, All months, all days

$
0
0
Hi, i'm fairly new on Pentaho start using it to create some dashboards.
I have a problem to create a select box with time (actually with almost every dimension),
what i want to do is show in my dashboard all the data, then i can drill down using the time dimension.
What i want is 3 select boxes
ALL YEARS | ALL MONTHS | ALL DAYS

how i do that
For the Year
Code:

select NON EMPTY {[Measures].[X]} ON COLUMNS,
  NON EMPTY {[Time].[All Years],[Time].Children} ON ROWS

This will give me a select box with the options All Years| 2013| 2014

Code:

select NON EMPTY {[Measures].[X]} ON COLUMNS,
 NON EMPTY {[Time].[${parYear}].Children} ON ROWS

This is the code for months, it works when i select a specific Year (like 2013).
But when i select the "All Years" option since it use the Children function, it returns the years (2013,2014)

How can i show the months select box with ALL MONTHS and then let it select any month when a specifc year is selected.


Another question if this one cannot be made. How do i make a select box only appears when a value has been selected in a previous one

Thanks in advance

Viewing all articles
Browse latest Browse all 16689

Trending Articles



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