TM1Web and Perspectives diff. on double quoted numbers
Posted: Tue Dec 02, 2014 9:25 am
There is a discrepancy observed on Excel formula behaviors in TM1Web and Perspectives regarding a number wrapped in double quote marks.
We tried to use IF formula to compare whether a simple number (say, a number 5) equals to a specific value. We found that in Excel the IF statement will return FALSE when the Type of Data (i.e. a "number" or a "text") is different. Whilst in TM1Web it will return TRUE even if we compare a number (say, 5) with a text (i.e. “5”). Some examples are given in below table.
Has any one else ever seen this behavior before? Advice on how to gracefully write Excel formulas for TM1Web to avoid this is also appreciated.
TM1 version: 10.1.1
Excel: 2003 or 2007
We tried to use IF formula to compare whether a simple number (say, a number 5) equals to a specific value. We found that in Excel the IF statement will return FALSE when the Type of Data (i.e. a "number" or a "text") is different. Whilst in TM1Web it will return TRUE even if we compare a number (say, 5) with a text (i.e. “5”). Some examples are given in below table.
Has any one else ever seen this behavior before? Advice on how to gracefully write Excel formulas for TM1Web to avoid this is also appreciated.
TM1 version: 10.1.1
Excel: 2003 or 2007
Formula | Result in Excel | Result in TM1Web |
=IF(9=9, "TRUE", "FALSE") | TRUE | TRUE |
=IF(9="9", "TRUE", "FALSE") | FALSE | TRUE |
=IF(9.01=9.01, "TRUE", "FALSE") | TRUE | TRUE |
=IF(9.01="9.01", "TRUE", "FALSE") | FALSE | TRUE |