How to filter #NA (i.e. UNDEF) values in TI

Post Reply
vladino
Posts: 110
Joined: Sat Nov 06, 2010 10:10 am
OLAP Product: Cognos TM1
Version: 10.2.2
Excel Version: Excel 2013

How to filter #NA (i.e. UNDEF) values in TI

Post by vladino »

Hi guys,
I'm trying to filter out #NA values in TI process - I don't want them to be copied from one cube to another one.

I have tried this:
IF (NVALUE <> UNDEF)
...

But this is not working. :-/

Could anyone help me with this issue?

BR
Vladino
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: How to filter #NA (i.e. UNDEF) values in TI

Post by tomok »

There is no such thing as an #NA value in TM1. What exactly are you talking about?
Tom O'Kelley - Manager Finance Systems
American Tower
http://www.onlinecourtreservations.com/
vladino
Posts: 110
Joined: Sat Nov 06, 2010 10:10 am
OLAP Product: Cognos TM1
Version: 10.2.2
Excel Version: Excel 2013

Re: How to filter #NA (i.e. UNDEF) values in TI

Post by vladino »

I'm talking about division by zero etc. This gives you "NaN" values (which I translate as #NA).
Duncan P
MVP
Posts: 600
Joined: Wed Aug 17, 2011 1:19 pm
OLAP Product: TM1
Version: 9.5.2 10.1 10.2
Excel Version: 2003 2007
Location: York, UK

Re: How to filter #NA (i.e. UNDEF) values in TI

Post by Duncan P »

I think you need ISUND.
rmackenzie
MVP
Posts: 733
Joined: Wed May 14, 2008 11:06 pm

Re: How to filter #NA (i.e. UNDEF) values in TI

Post by rmackenzie »

vladino wrote:I'm talking about division by zero etc. This gives you "NaN" values (which I translate as #NA).
If you make sure you use \ rather than / in your rules it solves the division by zero problem you're experiencing in that the rule engine will give 0 rather than then cell error. These would then be skipped if you're suppressing zeros in the cube view you're processing.

There's another reason for cell errors when you've got a circular reference in your rules. I think the TI engine throws the error before you get a chance to code for the exception so, once again, fixing the rules is the way forward. If you've deliberately coded circular references then perhaps you want to rethink this as you'll get all sorts of problems with stack overflows and other bothersome issues - did you do that?
Robin Mackenzie
vladino
Posts: 110
Joined: Sat Nov 06, 2010 10:10 am
OLAP Product: Cognos TM1
Version: 10.2.2
Excel Version: Excel 2013

Re: How to filter #NA (i.e. UNDEF) values in TI

Post by vladino »

If you make sure you use \ rather than / in your rules it solves the division by zero problem you're experiencing in that the rule engine will give 0 rather than then cell error.
That's it! Thanks a lot!
vladino
Posts: 110
Joined: Sat Nov 06, 2010 10:10 am
OLAP Product: Cognos TM1
Version: 10.2.2
Excel Version: Excel 2013

Re: How to filter #NA (i.e. UNDEF) values in TI

Post by vladino »

Hmmm, still not solved... :-/

I have replaced slash with backslash to avoid dividing by zero. But I have discovered that TM1 uses #NA also for infinity, for example dividing by number which is almost zero (3e-323 in my case).

Does anyone know how to deal with this? I need to copy this cell from one cube to another one but I'm not able to avoid minor errors because of #NA (I'm using CellPutN).

Thanks a lot in advance!
blackhawk
Community Contributor
Posts: 136
Joined: Thu May 29, 2008 2:29 pm

Re: How to filter #NA (i.e. UNDEF) values in TI

Post by blackhawk »

Why is the number so small? Is it real or is it a rounding issue that should have been zero?

Well you could always use:

['Value'] = IF( ABS(['Other Value']) < .001, 0, ['Other Value'] );

FYI: #NA can also occur when you have a circular reference.
vladino
Posts: 110
Joined: Sat Nov 06, 2010 10:10 am
OLAP Product: Cognos TM1
Version: 10.2.2
Excel Version: Excel 2013

Re: How to filter #NA (i.e. UNDEF) values in TI

Post by vladino »

It's getting more and more weird...

I have traced the calculation up to the source and it should be zero (it is consolidated year value, months are linked to another cube with no data in months -> but months in target cube contain 4,9e-324, therefore yearly consolidated value also has non-zero value).

Why the hell TM1 changed the number and how to fix this?
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: How to filter #NA (i.e. UNDEF) values in TI

Post by qml »

Kamil Arendt
Duncan P
MVP
Posts: 600
Joined: Wed Aug 17, 2011 1:19 pm
OLAP Product: TM1
Version: 9.5.2 10.1 10.2
Excel Version: 2003 2007
Location: York, UK

Re: How to filter #NA (i.e. UNDEF) values in TI

Post by Duncan P »

If the exact value you are seeing is 4.94066e-324 then check whether you have (or have ever had) UNDEFVALS in the cube rule. This is the value TM1 uses to represent a null cell when UNDEFVALS is specified.

[EDIT] and BTW another interesting link
Post Reply