Expand Function Help....

Post Reply
smehnert
Posts: 3
Joined: Wed Oct 24, 2012 1:15 pm
OLAP Product: TM1
Version: 9.5.2
Excel Version: 14

Expand Function Help....

Post by smehnert »

Hi all

I am in earnest trying to use the EXAND function to take in from a CSV file the parameters of the function I am trying to commit;

for example;

DimensionElementComponentAdd(EXPAND ('%vParameters%'));

In this instance vParameters is read from the file and contains 'DimName','ConsolidatElName','ELementName',1

I have also tried

DimensionElementInsert(EXPAND (''%' | vParameters | '%')); and every other variation of the above :?:

Is it not possible to read the whole contenets of the function from a file???

Regards
SMehnert
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: Expand Function Help....

Post by tomok »

smehnert wrote:Is it not possible to read the whole contenets of the function from a file???
I've never tried what you are suggesting but I'm going to have to so no. The problem is that the single quote (') and comma (,) that are part of your string are not a parameter but rather are delimiters being used by TM1 as part of the function. I don't think you can combine the delimiter and parameter inside the same EXPAND function. You're going to have to EXPAND each individual parameter and then concatenate the appropriate delimiters.
Tom O'Kelley - Manager Finance Systems
American Tower
http://www.onlinecourtreservations.com/
Wim Gielis
MVP
Posts: 3240
Joined: Mon Dec 29, 2008 6:26 pm
OLAP Product: TM1, Jedox
Version: PAL 2.1.5
Excel Version: Microsoft 365
Location: Brussels, Belgium
Contact:

Re: Expand Function Help....

Post by Wim Gielis »

Hello smehnert,

No, that is not possible with EXPAND. You can have a look at my website for a recent article where EXPAND was used (and works :-) )

If it were possible to do this, we would be able to use EXPAND for example for a CellPutN to a cube - irrespective the number of dimensions. Too bad, this idea won't work in practice.
Best regards,

Wim Gielis

IBM Champion 2024-2025
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
Post Reply