cancel
Showing results for 
Search instead for 
Did you mean: 

How to remove blank space

Former Member
0 Kudos

Hello gurus,

I would like to ask you for your help. I have a problem with blank space, when I'm trying convert text to number. Results under "999" value are ok, but when I get for example "1 123", it shows Error. I tried remove spaces with =Replace function, but it's not working. It looks like the Webi knows, that there are "something", but not space. Is it possible to decode text in Webi or have you any other ideas?

Thank you

Accepted Solutions (0)

Answers (2)

Answers (2)

amitrathi239
Active Contributor
0 Kudos

Try this.

=ToNumber(Replace(Replace([Text];" ";"");",";"."))

Former Member
0 Kudos

Hello, each value is error now. Have you any idea how to decode text? I think it could be useful for this problem.

0 Kudos

Hi Donald,

Amit Kumar suggested formula working fine. Can u try with this formula for decimal values.

=ToDecimal( Replace( Replace([Value];" ";"");",";""))

Thanks,

Pavan Kumar Aurora.

amitrathi239
Active Contributor
0 Kudos

use this.

=ToNumber(Replace(Replace([Text];" ";"");",";""))

Former Member
0 Kudos

Hello Amit,

Thank you for your response, but unfortunately there is still error and I need that number in decimal.