TI two dimensions into one

Post Reply
iansdigby
Community Contributor
Posts: 109
Joined: Thu Feb 26, 2009 8:44 am
OLAP Product: TM1
Version: 9 + 10 + Plan An
Excel Version: All
Location: Isle of Wight, UK

TI two dimensions into one

Post by iansdigby »

Greetings all,

Could anyone kindly help please with this:

I have a cube containing accounting data, that I wish to pump into another cube. For example:

In Cube 1, the value £10 is located at the conjunction of Cost Centre "110" and Expense Code "225"
In Cube 2, the same value needs to be located at GL_Account "110225"

In a TI process, what would be the syntax for getting the value from the conjunction of the two dims in Cube 1 into the snigle dim in Cube 2?

All assitance greatly appreciated in advance.

Ian
"the earth is but one country, and mankind its citizens" - Baha'u'llah
User avatar
qml
MVP
Posts: 1098
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: TI two dimensions into one

Post by qml »

Create a view of Cube 1 and make it the data source of your TI process.

In the below code for the Data tab vCC and vEC are names of two of your variables on the Variables tab, based on your two dimensions.

Code: Select all

CellPutN (vValue, 'Cube 2', some_dims, vCC | vEC, some_more_dims);
The pipe character "|" will concatenate two strings to create the required outcome.
Kamil Arendt
iansdigby
Community Contributor
Posts: 109
Joined: Thu Feb 26, 2009 8:44 am
OLAP Product: TM1
Version: 9 + 10 + Plan An
Excel Version: All
Location: Isle of Wight, UK

Re: TI two dimensions into one

Post by iansdigby »

To Kamil,

Utterly brilliant and much appreciated.

Thank you

Ian
"the earth is but one country, and mankind its citizens" - Baha'u'llah
User avatar
qml
MVP
Posts: 1098
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: TI two dimensions into one

Post by qml »

You're probably right, the above is some of my best work to date. :lol:
Kamil Arendt
guoshock
Posts: 14
Joined: Fri Mar 30, 2012 9:17 am
OLAP Product: TM1
Version: 9.5.1
Excel Version: MS Office 2007

Re: TI two dimensions into one

Post by guoshock »

qml wrote:You're probably right, the above is some of my best work to date. :lol:
Hi,qml,where did you execute the code "CellPutN (vValue, 'Cube 2', some_dims, vCC | vEC, some_more_dims);",and can you give some materials about it?
I'm a green hand on TM1,thanks anyway.
Alan Kirk
Site Admin
Posts: 6667
Joined: Sun May 11, 2008 2:30 am
OLAP Product: TM1
Version: PA2.0.9.18 Classic NO PAW!
Excel Version: 2013 and Office 365
Location: Sydney, Australia
Contact:

Re: TI two dimensions into one

Post by Alan Kirk »

guoshock wrote:
qml wrote:You're probably right, the above is some of my best work to date. :lol:
Hi,qml,where did you execute the code "CellPutN (vValue, 'Cube 2', some_dims, vCC | vEC, some_more_dims);",
QML wrote:In the below code for the Data tab
(Emphasis added.)
guoshock wrote:and can you give some materials about it?
Searching for "CellPutN" in the documentation yields this topic.
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
guoshock
Posts: 14
Joined: Fri Mar 30, 2012 9:17 am
OLAP Product: TM1
Version: 9.5.1
Excel Version: MS Office 2007

Re: TI two dimensions into one

Post by guoshock »

Many thanks,qml,Emphasis and Alan Kirk.
lotsaram
MVP
Posts: 3706
Joined: Fri Mar 13, 2009 11:14 am
OLAP Product: TableManager1
Version: PA 2.0.x
Excel Version: Office 365
Location: Switzerland

Re: TI two dimensions into one

Post by lotsaram »

I too would also like to take this opportunity to thank Emphasis for all the valuable contributions that he/she adds.
Alan Kirk
Site Admin
Posts: 6667
Joined: Sun May 11, 2008 2:30 am
OLAP Product: TM1
Version: PA2.0.9.18 Classic NO PAW!
Excel Version: 2013 and Office 365
Location: Sydney, Australia
Contact:

Re: TI two dimensions into one

Post by Alan Kirk »

lotsaram wrote:I too would also like to take this opportunity to thank Emphasis for all the valuable contributions that he/she adds.
Unfortunately Emphasis is looking to retire soon.

We're working on a forum mod to replace her. It will involve shooting fireworks out of the screen while giant animated arrows point to the key words in each post. The mod will include an auto-eye-detection module so that as soon as the key words are read a medley of John Philip Sousa marches will blast out of the reader's speakers at full volume. If the reader doesn't have speakers, we'll just modulate the output of their monitor to cause it to vibrate so that it fakes the same effect.

When the reader clicks on the FAQ link to the online documentation, then either the Hallelujah chorus or Beethoven's Ode to Joy will play instead. (I haven't decided which yet, but I'm leaning toward the Die Hard version of the latter.)
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
Post Reply