TI Skip Rule Cells

Post Reply
User avatar
mattgoff
MVP
Posts: 516
Joined: Fri May 16, 2008 1:37 pm
OLAP Product: TM1
Version: 10.2.2.6
Excel Version: O365
Location: Florida, USA

TI Skip Rule Cells

Post by mattgoff »

I know it's possible, but I can't remember/find how to test to see if a cell is open for writing. Specifically, I need to test to see if a rule applies before trying to CellPutN to avoid process errors. Anyone remember or have a pointer to the docs (optimist, I know)?

Thanks,
Matt
Please read and follow the Request for Assistance Guidelines. It helps us answer your question and saves everyone a lot of time.
User avatar
Michel Zijlema
Site Admin
Posts: 712
Joined: Wed May 14, 2008 5:22 am
OLAP Product: TM1, PALO
Version: both 2.5 and higher
Excel Version: 2003-2007-2010
Location: Netherlands
Contact:

Re: TI Skip Rule Cells

Post by Michel Zijlema »

Hi Matt,

You're looking for CellIsUpdateable(Cube, e1, e2 [,...en]);
Have a look in the reference guide under Turbo Integrator functions.

Michel
Lukas Meyer
Posts: 51
Joined: Thu Jul 24, 2008 6:14 am

Re: TI Skip Rule Cells

Post by Lukas Meyer »

Hi Matt,

You are looking for CELLISUPDATEABLE(cube, d1, d2[, ...]) - it will return 0 if either the cell in question is rule calculated or not a leaf, otherwise 1. Unfortunately TI doesn't provide ISLEAF (which is available in rules), but you can check the level of each and every dimensions's element of your cell.
However, if the element of the last dimension in the cube is a string, the cell will be updateable and not every element has to be a leaf.
(This will work from 9.0 to 9.1.4, and if you feel lucky you can try it on 9.4, but don't come to me crying after you hurt yourself doing so 8-) )

Lukas

PS: too slow :( curse you keyboard, its all your fault!
User avatar
mattgoff
MVP
Posts: 516
Joined: Fri May 16, 2008 1:37 pm
OLAP Product: TM1
Version: 10.2.2.6
Excel Version: O365
Location: Florida, USA

Re: TI Skip Rule Cells

Post by mattgoff »

Awesome, thanks to you both. The manual can be less than searchable (as we all know)... but the hive-mind always comes through for me :D

Matt
Please read and follow the Request for Assistance Guidelines. It helps us answer your question and saves everyone a lot of time.
Post Reply