Hi,
my cube has have several dimensions, two of them are years / quarters / months / day based items. They are the beginn and the end of "events".
I have a date picker in my sheet and now my report only should show "events" in a dynarange that have the beginn date before the date picker and the end date after the time picker.
Actually i solve this via attributes. Each event has date of beginn and end as YYYYMMDD and so attribute filter can calculate. But this is not a nice solution and it seems not to be performant in cubes with many dimensions.
Instead of attribute filter I want to use data filter for this.
For example 2015/03/12 is choosen.
All events that start before the date and end after this date should be shown.
My idea is to create a picklist via macro that includes all items for dimension 2015/03/*, all months of the year before march: 2015-01 2015-02 and all years before 2015: 2005, 2006, 2007 ...
and the same the other way round for the "end"-dimension.
These picklist should be stored as variables or cells in the sheet and the data filter of every dimension can use these variables for the time dimensions.
Are there some kind of "best practices" or some macro code snippets for this?
my cube has have several dimensions, two of them are years / quarters / months / day based items. They are the beginn and the end of "events".
I have a date picker in my sheet and now my report only should show "events" in a dynarange that have the beginn date before the date picker and the end date after the time picker.
Actually i solve this via attributes. Each event has date of beginn and end as YYYYMMDD and so attribute filter can calculate. But this is not a nice solution and it seems not to be performant in cubes with many dimensions.
Instead of attribute filter I want to use data filter for this.
For example 2015/03/12 is choosen.
All events that start before the date and end after this date should be shown.
My idea is to create a picklist via macro that includes all items for dimension 2015/03/*, all months of the year before march: 2015-01 2015-02 and all years before 2015: 2005, 2006, 2007 ...
and the same the other way round for the "end"-dimension.
These picklist should be stored as variables or cells in the sheet and the data filter of every dimension can use these variables for the time dimensions.
Are there some kind of "best practices" or some macro code snippets for this?