Convert Quarter Dimension in Rules

Post Reply
kkmk
Posts: 73
Joined: Wed Jan 25, 2012 9:08 am
OLAP Product: IBM Cognos TM1
Version: 10.2
Excel Version: 2013

Convert Quarter Dimension in Rules

Post by kkmk »

Hi,

I have to pull data from one cube to another. There the Quarter dimension is not matching and based on the business requirement we kept like this but now end up with issue writing rules.


Source Dimension:
- FY13 (Consolidation)
- FY13-Q1
- FY13-Q2
- FY13-Q3
- FY13-Q4

Target Dimension:
- 2013 (consolidation)
- 2013-Q1
- 2013-Q2
- 2013-Q3
- 2013-Q4

Rules :

[Target Cube, Target Element] = [Source Cube, Source Element];

I want to convert this source format FY13-Q1to 2013-Q1 as in the target cube.

Any help. Thanks in advance.
KKMK
Tetsuo331
Posts: 11
Joined: Mon Feb 04, 2013 11:30 pm
OLAP Product: Product
Version: Version
Excel Version: Version
Location: Location

Re: Convert Quarter Dimension in Rules

Post by Tetsuo331 »

kkmk wrote:Hi,

I have to pull data from one cube to another. There the Quarter dimension is not matching and based on the business requirement we kept like this but now end up with issue writing rules.


Source Dimension:
- FY13 (Consolidation)
- FY13-Q1
- FY13-Q2
- FY13-Q3
- FY13-Q4

Target Dimension:
- 2013 (consolidation)
- 2013-Q1
- 2013-Q2
- 2013-Q3
- 2013-Q4

Rules :

[Target Cube, Target Element] = [Source Cube, Source Element];

I want to convert this source format FY13-Q1to 2013-Q1 as in the target cube.

Any help. Thanks in advance.
KKMK
Hi,

Maybe you can create an attribut for the target dimension containing the name of the source element. This solution provide more flexibility and is probably more reliable than replacing the characters to generate the source element name. (i don't even know if it is possibe in a cube rule... )
Hope it's helpful.
Omar
David Usherwood
Site Admin
Posts: 1458
Joined: Wed May 28, 2008 9:09 am

Re: Convert Quarter Dimension in Rules

Post by David Usherwood »

I'd combine the two - create the attribute, then write a rule in the attribute cube to do the manipulation.
Don't forget you will need a feeder and a 'reverse' attribute for that.
And put an n: in your rule...
Tetsuo331
Posts: 11
Joined: Mon Feb 04, 2013 11:30 pm
OLAP Product: Product
Version: Version
Excel Version: Version
Location: Location

Re: Convert Quarter Dimension in Rules

Post by Tetsuo331 »

David Usherwood wrote:I'd combine the two - create the attribute, then write a rule in the attribute cube to do the manipulation.
Don't forget you will need a feeder and a 'reverse' attribute for that.
And put an n: in your rule...
Hi,
How do you replace characters in Cube Rules? And supposing it is possible, it may have impact on performance.
Anyways I would recommand using a process to fill this attribute.

Using a "reverse attribute" is a really efficient (if it's not just necessary) and easy to implement since we have in this particular case a One-to-One relationship between source and target elements.

Cheers,

Omar
tomok
MVP
Posts: 2836
Joined: Tue Feb 16, 2010 2:39 pm
OLAP Product: TM1, Palo
Version: Beginning of time thru 10.2
Excel Version: 2003-2007-2010-2013
Location: Atlanta, GA
Contact:

Re: Convert Quarter Dimension in Rules

Post by tomok »

If there is truly a one-to-one relationship you could just create an alias on the source and/or target dimensions and not worry about doing an ATTRS lookup in the rules.
Tom O'Kelley - Manager Finance Systems
American Tower
http://www.onlinecourtreservations.com/
Tetsuo331
Posts: 11
Joined: Mon Feb 04, 2013 11:30 pm
OLAP Product: Product
Version: Version
Excel Version: Version
Location: Location

Re: Convert Quarter Dimension in Rules

Post by Tetsuo331 »

tomok wrote:If there is truly a one-to-one relationship you could just create an alias on the source and/or target dimensions and not worry about doing an ATTRS lookup in the rules.
I agree! The solution i proposed was for a more general situation. But I completly agree with you...
Post Reply