Mapping Cube Setup
-
- Posts: 18
- Joined: Fri May 15, 2015 2:04 pm
- OLAP Product: Cognos TM1
- Version: 10.1
- Excel Version: 2007
Mapping Cube Setup
We are running Cognos TM1 version 10.1 and we would like to setup a mapping table so we could map the current listing of GL accounts currently in a cube to point to a new GL account structure we have. I am new to TM1 so I was looking for some guidance on how to best approach these along with some technical steps.
Thank you
Thank you
-
- 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: Mapping Cube Setup
The simplest way would be to create a string attribute on the Account dimension and populate it with the new account number. That will allow you to lookup the new account number in TM1, whether in rules or TI, using the ATTRS function. As to how to create an attribute, it is extremely easy and is covered more than adequately in the documentation, with examples. Suggest you give it a read.
-
- Posts: 18
- Joined: Fri May 15, 2015 2:04 pm
- OLAP Product: Cognos TM1
- Version: 10.1
- Excel Version: 2007
Re: Mapping Cube Setup
I have already ran thru the attribute setup for our account dimension and associated the new account number we want to map to. I have then tried to update or create a process to utilize that attribute but this is where I am getting stuck. any guidance?
-
- MVP
- Posts: 1831
- Joined: Mon Dec 05, 2011 11:51 am
- OLAP Product: Cognos TM1
- Version: PA2.0 and most of the old ones
- Excel Version: All of em
- Location: Manchester, United Kingdom
- Contact:
Re: Mapping Cube Setup
TI Data source is a view of your existing GL structure where vsOldAccount is the old account and vnValue is the value held in that cube.
CellIncrementN is mentioned as you may be combining what used to be 2 accounts in to 1 new account and therefore you would want to increment a value as opposed to just doing a cellputn.
And remember to start with a zero out.
Code: Select all
sNewAccount = AttrS ( sDimOldAccount, vsOldAccount, 'Map To' );
CellIncrementN ( Value, sNewCube, vDim1Element, vDim2Element,..., sNewAccount, 'Measure' );
And remember to start with a zero out.
Declan Rodger
-
- 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: Mapping Cube Setup
Then why didn't you tell us that at the start? You completely wasted my time.tstagliano wrote:I have already ran thru the attribute setup for our account dimension and associated the new account number we want to map to
What exactly does this mean? We can't read your mind. Suggest you read the request for assistance guidelines, then come back with specific questions. What is "getting stuck" What are you trying to do? What have you tried so far? Where is your code?tstagliano wrote:I have then tried to update or create a process to utilize that attribute but this is where I am getting stuck. any guidance?
-
- Posts: 18
- Joined: Fri May 15, 2015 2:04 pm
- OLAP Product: Cognos TM1
- Version: 10.1
- Excel Version: 2007
Re: Mapping Cube Setup
Sorry tomok for not being more clearer and I don't mean to waste your time and I appreciate your guidance and responsiveness to this post. I will try to be more clearer.
Purpose: To take the current GL accounts stored in the cube and map them to a new set of GL accounts we have created.
Steps Take so Far:
- Created an attribute called "MappingAccount" in our Account dimension and populated the new GL account associated to each current GL account.
- Created a Turbo Integrator process with the current DataSource values:
Type = ICAS --> Cube View
DataSource Name = Finance Cube --> Trial Balance View
- On the Variables Tab, I set all variables to a Content value of "Element" except for the Accounts Variable where I set that to "Attribute"
- On the Maps tab, I left No Action selected on the Cube tab, set the Element Variable to each Dimension on the Dimensions tab.
- Where I am getting stuck is when I go to the Attribute tabs under the Maps tab, I see the Accounts Dimension listed under the Attribute Variable column, but when I select the dimension column, my Accounts Dimension does not appear in the list, thus I am not allowed to associate the new attribute with the new GL accounts to the existing values.
Purpose: To take the current GL accounts stored in the cube and map them to a new set of GL accounts we have created.
Steps Take so Far:
- Created an attribute called "MappingAccount" in our Account dimension and populated the new GL account associated to each current GL account.
- Created a Turbo Integrator process with the current DataSource values:
Type = ICAS --> Cube View
DataSource Name = Finance Cube --> Trial Balance View
- On the Variables Tab, I set all variables to a Content value of "Element" except for the Accounts Variable where I set that to "Attribute"
- On the Maps tab, I left No Action selected on the Cube tab, set the Element Variable to each Dimension on the Dimensions tab.
- Where I am getting stuck is when I go to the Attribute tabs under the Maps tab, I see the Accounts Dimension listed under the Attribute Variable column, but when I select the dimension column, my Accounts Dimension does not appear in the list, thus I am not allowed to associate the new attribute with the new GL accounts to the existing values.
-
- 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: Mapping Cube Setup
This is not correct. Setting a variable equal to "Attribute" means you are telling TM1 that the value in this variable is an attribute itself. In your case it is not, it is the original account. What you want to do is replace the account variable with an attribute of that element. Go back to the Account variable and change it's definition to "Other". Then create a new variable (by clicking on the New Variable button), name it "NewAccount", set the Variable "Type" as String, Set the Contents as "Element' and then set the Formula assign the following formula: NewAccount = ATTRS('Account', Account, "MappingAccount");. In the Mapping tab choose this variable as your Account element.tstagliano wrote: - On the Variables Tab, I set all variables to a Content value of "Element" except for the Accounts Variable where I set that to "Attribute"
-
- Posts: 18
- Joined: Fri May 15, 2015 2:04 pm
- OLAP Product: Cognos TM1
- Version: 10.1
- Excel Version: 2007
Re: Mapping Cube Setup
thanks for the information
Last edited by tstagliano on Mon May 18, 2015 8:17 pm, edited 1 time in total.
-
- MVP
- Posts: 1831
- Joined: Mon Dec 05, 2011 11:51 am
- OLAP Product: Cognos TM1
- Version: PA2.0 and most of the old ones
- Excel Version: All of em
- Location: Manchester, United Kingdom
- Contact:
Re: Mapping Cube Setup
Put single quotes around 'MappingAccount' instead of double quotes. All string items in TM1 rely on single quotes.tstagliano wrote:tomok,
I ran thru you suggest changes and when I add the below formula to this new variable, I receive the syntax error message. The actual name of our dimension is "Accounts" so I adjusted the formula but still receiving the error. Would having subsets cause some adjustments to this formula?
NewAccount = ATTRS('Accounts', Accounts, "MappingAccount");
Line 1: Syntax error on or before: "MappingAccount"); invalid string expression
Declan Rodger
-
- Posts: 18
- Joined: Fri May 15, 2015 2:04 pm
- OLAP Product: Cognos TM1
- Version: 10.1
- Excel Version: 2007
Re: Mapping Cube Setup
made that change and was able to get the error message to disappear.
-
- Posts: 18
- Joined: Fri May 15, 2015 2:04 pm
- OLAP Product: Cognos TM1
- Version: 10.1
- Excel Version: 2007
Re: Mapping Cube Setup
So I was able to run the process, but it produced the following error message in the log file. There are a number of these errors in the log file. Any insight as to what this message means and how to fix?
"Actual","Mar-2014","Current Budget Rate","Consulting","12650000 - Qatar","No Partner","71620000 - Consultant Base Salary","Amount","42426.58",Data Source line (298) Error: Data procedure line (4): Rule applies to cell
"Actual","Mar-2014","Current Budget Rate","Consulting","12650000 - Qatar","No Partner","71620000 - Consultant Base Salary","Amount","42426.58",Data Source line (298) Error: Data procedure line (4): Rule applies to cell
-
- MVP
- Posts: 1831
- Joined: Mon Dec 05, 2011 11:51 am
- OLAP Product: Cognos TM1
- Version: PA2.0 and most of the old ones
- Excel Version: All of em
- Location: Manchester, United Kingdom
- Contact:
Re: Mapping Cube Setup
TM1 logs can sometimes be hard to decipher but this one is exactly what it says on the tin.tstagliano wrote:So I was able to run the process, but it produced the following error message in the log file. There are a number of these errors in the log file. Any insight as to what this message means and how to fix?
"Actual","Mar-2014","Current Budget Rate","Consulting","12650000 - Qatar","No Partner","71620000 - Consultant Base Salary","Amount","42426.58",Data Source line (298) Error: Data procedure line (4): Rule applies to cell
A rule applies to the cell that you are trying to change the value for in Line 4 of your data tab.
Assuming the rule is there for a reason you should check to see if the TI process can avoid that row of data in the source of just use a cellisupdateable if statement wrapped around your cellput.
Declan Rodger
- qml
- MVP
- Posts: 1097
- 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: Mapping Cube Setup
It's right there in the error message: "Rule applies to cell". It means you have a calculation rule attached to the cube that applies to the same area of the cube that you are trying to write values to. If a cell is rule-calculated, it is impossible to write values to it directly. You need to decide which one it is that you want - the TI values or the rule values and either amend the rule or change the TI process to write only to non-rule-calculated cells. An easy solution (but not always the correct one! - think what you want to achieve first) is to test whether a cell can be written to by checking the condition CellIsUpdateable and only executing CellPutN/CellIncrementN if the condition is met.tstagliano wrote:Any insight as to what this message means and how to fix?
Code: Select all
IF( CellIsUpdateable( ... ) = 1 );
CellIncrementN( ... );
ENDIF;
Kamil Arendt
-
- Posts: 18
- Joined: Fri May 15, 2015 2:04 pm
- OLAP Product: Cognos TM1
- Version: 10.1
- Excel Version: 2007
Re: Mapping Cube Setup
I have confirmed that the cube I am trying to update does have a rule associated to it. What I am really trying to do is just update the account number to be something new but the values are not being updated but just moving to be associated to the new accounts we have. I will try to check the condition as part of the process to see if that resolves my issue.
-
- 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: Mapping Cube Setup
Based on what you are trying to do you should have configured the data source view to skip rule calculated values. Is there a particular reason you didn't do this?
-
- Posts: 18
- Joined: Fri May 15, 2015 2:04 pm
- OLAP Product: Cognos TM1
- Version: 10.1
- Excel Version: 2007
Re: Mapping Cube Setup
I did not set up the view so I do not know the reason for the calculated rules. Can I go back and change the data source view to skip the calculated values as this point?
-
- Regular Participant
- Posts: 424
- Joined: Sat Mar 10, 2012 1:03 pm
- OLAP Product: IBM TM1, Planning Analytics, P
- Version: PAW 2.0.8
- Excel Version: 2019
Re: Mapping Cube Setup
I think,That is exactly what Tomok is suggesting to you.Thanks
"You Never Fail Until You Stop Trying......"
-
- 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: Mapping Cube Setup
if you didn't create the view then who did? Please tell me you are not using a view that was created for viewing as a source in a Ti process. Depending on row, column and title settings you can get unpredictable results. You should always create your view dynamically in the prolog of your TI process, which will create a flat view. It is during that creation you can set the view to skip zeros, consolidations and rule calculated values.tstagliano wrote:I did not set up the view
-
- Posts: 18
- Joined: Fri May 15, 2015 2:04 pm
- OLAP Product: Cognos TM1
- Version: 10.1
- Excel Version: 2007
Re: Mapping Cube Setup
Yes I am using an existing view as the Datasource so I can take whatever is currently in the view and re-map to the new accounts. Again I am brand new to TM1 so I apologize if my questions are so beginner level.
-
- 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: Mapping Cube Setup
It appears you are just flying by the seat of your pants instead of trying to learn a little bit about the tool by taking a training class, or at the least, reading the documentation, before heading off and trying to productionalize things. Be warned, as you sow so shall you reap. Time invested in training and/or reading the docs is going to pay dividends. While your way is certainly one way to learn the tool, it's probably not the best and it's gonna give you a lot of heartburn along the way.