Hi Everyone,
I am trying to Populate the mapping value from Dim 4 to the mapping cube. Here are the information for the mapping cube and dimensions.
Mapping cube has Geo, Entity and Mapping value dimensions.
1. Geo dim has Geo_Code attribute
2. Entity dim has Entity_Code attribute.
3. Mapping value dim has an element value which needs to be populated from Dim 4, by looking the combination of Geo attr and Entity attr.
mapping value needs to be populated using rules.
Can anyone help me as how to populate using rules.
Please see the screenshot attached for ref:
Thanks in Advance...
Need help - Mapping cube
-
- Posts: 11
- Joined: Tue Nov 13, 2012 1:54 pm
- OLAP Product: Cognos TM1
- Version: 9.5.2
- Excel Version: 2007
Need help - Mapping cube
Last edited by amritha.tm1 on Wed Nov 14, 2012 5:31 am, edited 1 time in total.
-
- Community Contributor
- Posts: 110
- Joined: Thu Aug 26, 2010 7:41 am
- OLAP Product: TM1, PA
- Version: PAL 2.0.8
- Excel Version: 2016
- Location: North West England
Re: Need help - Mapping cube
Hi,
Looks like a pretty straight forward rule to write. I am all for being proactive and self learning so will point you in the right direction rather than give you a solution.
Look up the ATTRS Function, which will enable you to pull the relevant attributes data into the cube.
Have a go at writing the Rule, and post back your efforts should it not work as expected.
Looks like a pretty straight forward rule to write. I am all for being proactive and self learning so will point you in the right direction rather than give you a solution.
Look up the ATTRS Function, which will enable you to pull the relevant attributes data into the cube.
Have a go at writing the Rule, and post back your efforts should it not work as expected.
Always Open to Opportunities
-
- Posts: 11
- Joined: Tue Nov 13, 2012 1:54 pm
- OLAP Product: Cognos TM1
- Version: 9.5.2
- Excel Version: 2007
Re: Need help - Mapping cube
Here is the rule i am trying:
['value'] = S: IF (ATTRS('Geo', !Geo, 'Geo_code') @ = SUBST(!Dim4, 1,4) & ATTRS('Entity, !Entity, 'Entity_code') @ = SUBST(!Dim4, 5, 9), ! Dim4, CONTINUE);
But getting error...Might be syntax wrong.
Thank You! Msidat
['value'] = S: IF (ATTRS('Geo', !Geo, 'Geo_code') @ = SUBST(!Dim4, 1,4) & ATTRS('Entity, !Entity, 'Entity_code') @ = SUBST(!Dim4, 5, 9), ! Dim4, CONTINUE);
But getting error...Might be syntax wrong.
Thank You! Msidat
-
- Posts: 11
- Joined: Tue Nov 13, 2012 1:54 pm
- OLAP Product: Cognos TM1
- Version: 9.5.2
- Excel Version: 2007
Re: Need help - Mapping cube
Its okay...even if can populate the value by concatention of Attr from dim1 + attr from dim2 without referring dim4.
Thanks in Advance.
Thanks in Advance.
- qml
- MVP
- Posts: 1096
- Joined: Mon Feb 01, 2010 1:01 pm
- OLAP Product: TM1 / Planning Analytics
- Version: 2.0.9 and all previous
- Excel Version: 2007 - 2016
- Location: London, UK, Europe
Re: Need help - Mapping cube
You have a few basic syntax errors there:
- spaces in the "@=" operator;
- unclosed single quotes;
- a space between the exclamation mark and the dimension name (not sure, this may work).
- spaces in the "@=" operator;
- unclosed single quotes;
- a space between the exclamation mark and the dimension name (not sure, this may work).
Kamil Arendt
Re: Need help - Mapping cube
Amritha.tm1
You can try this way
['value'] = S: IF(DIMIX('Dim4',ATTRS('GEO',!000_Geo,'Geo_code')|ATTRS('Entity',!Entity,'Entity_code'))>0,ATTRS('GEO',!Geo,'Geo_code')|ATTRS('Entity',!Entity,'Entity_code'),continue);
Hope this might help
You can try this way
['value'] = S: IF(DIMIX('Dim4',ATTRS('GEO',!000_Geo,'Geo_code')|ATTRS('Entity',!Entity,'Entity_code'))>0,ATTRS('GEO',!Geo,'Geo_code')|ATTRS('Entity',!Entity,'Entity_code'),continue);
Hope this might help