How to replace N/A values in Rules Editor with missing/null?
Posted: Fri Apr 09, 2010 9:11 am
Hi,
in TM1 v9.5 I have a formula in Rules Editor:
['PRICE']=['VALUE']/['QUANTITY']
but in some cases Quantity is 0, so divide by zero problem appears and data in cells get N/A values. When I use topCount function in Cognos BI v8.4.1 Report Studio it returns incorrect values, it assumes that N/A values are the highest values. To solve this problem I have changed formula in TM1 to:
['PRICE']=['VALUE']\['QUANTITY']
Replaced / with \, so instead of returning N/A values I get 0. OK, now topCount function in Cognos BI works fine, but bottomCount function (to get bottom n-members) returns 0 as a minimum member. Which is mathematically correct, but I want to ignore this zeros.
The funny think is if I use first formula then topCount is working fine and bottomCount is not working fine. But if I use second formula then topCount is not working fine and bottomCount is working fine. So I can't have both topCount and bottomCount functions in the same report.
Question: Is there any special value in TM1 like "null" in relational databases or like "#MISSING" value in Oracle Hyperion Essbase, so to tell TM1 that for this member value does not exists. Something like:
['PRICE']=IF(['QUANTITY']=0,#MISSING,['VALUE']/['QUANTITY'])
What is #MISSING or null equivalent in TM1?
Regards,
igorM
in TM1 v9.5 I have a formula in Rules Editor:
['PRICE']=['VALUE']/['QUANTITY']
but in some cases Quantity is 0, so divide by zero problem appears and data in cells get N/A values. When I use topCount function in Cognos BI v8.4.1 Report Studio it returns incorrect values, it assumes that N/A values are the highest values. To solve this problem I have changed formula in TM1 to:
['PRICE']=['VALUE']\['QUANTITY']
Replaced / with \, so instead of returning N/A values I get 0. OK, now topCount function in Cognos BI works fine, but bottomCount function (to get bottom n-members) returns 0 as a minimum member. Which is mathematically correct, but I want to ignore this zeros.
The funny think is if I use first formula then topCount is working fine and bottomCount is not working fine. But if I use second formula then topCount is not working fine and bottomCount is working fine. So I can't have both topCount and bottomCount functions in the same report.
Question: Is there any special value in TM1 like "null" in relational databases or like "#MISSING" value in Oracle Hyperion Essbase, so to tell TM1 that for this member value does not exists. Something like:
['PRICE']=IF(['QUANTITY']=0,#MISSING,['VALUE']/['QUANTITY'])
What is #MISSING or null equivalent in TM1?
Regards,
igorM