Changing the decimal separator to comma
Posted: Mon Mar 30, 2015 8:36 am
Hi,
I've been struggling with the fact that the decimal separator in my data is "," and there are no thousand separators. If I try defining these settings in the data source tab of Performance Modeler, the numbers imported are way too big, in other words, TM1 seems to read the commas as thousand separators.
However, as soon as I defined DatasourceASCIIThousandSeparator=''; and DatasourceASCIIDecimalSeparator=','; on the prolog tab, I get an error saying "Cannot convert value ... to a real number" (Cannot_convert.PNG) and no values are imported. In the mapping tab data preview the data looks right (decimal.PNG) and the data type is set to decimal. Moreover, I cannot import the data values straight from the source file (field number 3 in the error log is the original value) and I have to use a calculated column that switches the sign of the data while needed (this cannot apparently be done by weights, since the data needs to be seen with a different sign also on the leaf level) To sum it up, in Performance Modeler I've only managed to import too big values or no values at all.
I've tried changing language settings and was able to import correct numbers with Architect, but I'd rather use Performance Modeler since I have no experience of Architect. Anyhow, while changing the language settings, the user interface language changes (as do the names of the variables) and I'd rather use Performance Modeler in English, to be able to search error messages in the future.
Could someone tell what is the best practice if I want to use Performance Modeler in English, but to have comma as a decimal separator and no thousand separator at all? I would be really grateful for any answers!
I've been struggling with the fact that the decimal separator in my data is "," and there are no thousand separators. If I try defining these settings in the data source tab of Performance Modeler, the numbers imported are way too big, in other words, TM1 seems to read the commas as thousand separators.
However, as soon as I defined DatasourceASCIIThousandSeparator=''; and DatasourceASCIIDecimalSeparator=','; on the prolog tab, I get an error saying "Cannot convert value ... to a real number" (Cannot_convert.PNG) and no values are imported. In the mapping tab data preview the data looks right (decimal.PNG) and the data type is set to decimal. Moreover, I cannot import the data values straight from the source file (field number 3 in the error log is the original value) and I have to use a calculated column that switches the sign of the data while needed (this cannot apparently be done by weights, since the data needs to be seen with a different sign also on the leaf level) To sum it up, in Performance Modeler I've only managed to import too big values or no values at all.
I've tried changing language settings and was able to import correct numbers with Architect, but I'd rather use Performance Modeler since I have no experience of Architect. Anyhow, while changing the language settings, the user interface language changes (as do the names of the variables) and I'd rather use Performance Modeler in English, to be able to search error messages in the future.
Could someone tell what is the best practice if I want to use Performance Modeler in English, but to have comma as a decimal separator and no thousand separator at all? I would be really grateful for any answers!