Page 1 of 1

Numeric to string

Posted: Fri May 28, 2021 1:21 am
by manu0521
Hi ,

I am using a sql view in my ti to load data , in my sql view I have SID' stored in numeric columns , so in my ti I am just changing them to string from numeric .

Will tm1 internally convert to string when we say string in the variable tab . I am asking becasue should i do this conversion in the sql view , the sid's supposed be interger . But I have my dimension alias as sid's so that i can load the cube based on sid's rather than the keys.

Thanks,

Re: Numeric to string

Posted: Fri May 28, 2021 7:24 am
by gtonkin
I would personally rather do a cast or convert and configure my TI variables for their purpose. Would not leave anything to chance.

Re: Numeric to string

Posted: Sat May 29, 2021 12:58 am
by jim wood
Agreed. TM1 stores numbers differently than in a DB (especially the number of decimal places etc) so doing the change on the query side is by far the safest option.