date to month and year rule

Post Reply
scrummyd
Posts: 11
Joined: Wed Dec 17, 2008 1:58 am

date to month and year rule

Post by scrummyd »

ok I'm pulling out the last of my hairs!

I have a cube where the data is loaded against a date yyyy-mm-dd and there are string attributes held against each date for month and year (ie Apr and 2009/10)

i want to be able to send the data to a smaller reporting cube which has month and year dimensions instead of the date by using a rule.

Any help greatly welcomed
User avatar
Martin Ryan
Site Admin
Posts: 1989
Joined: Sat May 10, 2008 9:08 am
OLAP Product: TM1
Version: 10.1
Excel Version: 2010
Location: Wellington, New Zealand
Contact:

Re: date to month and year rule

Post by Martin Ryan »

You'll need to have some consolidation points in the Date dimension at month level if there is no 'Day' in the smaller reporting cube. For easy of use you should make those consolidations match up to the element names in the reporting cube. E.g. Apr 2009/10

Then the rule in your reporting cube will be

Code: Select all

['Value'] = N: DB('DataCube', !Dim1, !Month | ' ' | !!Year, !Dim3, 'Value');
The feeder from the data cube will be

Code: Select all

['Value' => DB('Reporting Cube', !Dim1, attrs('Date', !Date, 'Month'), attrs('Date', !Date, 'Year');
For more specific help, can you please post the dimension structure of your two cubes.

Martin
Please do not send technical questions via private message or email. Post them in the forum where you'll probably get a faster reply, and everyone can benefit from the answers.
Jodi Ryan Family Lawyer
Post Reply