Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I have data like following.
How can i remove all the 0 before the real digits?
Thanks.
000000001234
000000334456
000000043467
Nick,
num() seems to work with me - not against SAP data though.
As a 'ye haw!!' cowboy workaround I'd try something like the following in the load script to chop the field down to size:
right(Number,len(Number)-(FindOneOf(Number,'123456789'))+1)
Hope that helps,
Matt
@QlikviewBI
use floor(fieldname) or num(fieldname)
Hi,
you can also try
purgechar(000000001234,'0')
@keeruthi Purgechar is not a good idea because
000001234-->1234
0000012034-->1234
You'll get wrong value
@Siva,
tht's wht he wants right??
"How can i remove all the 0 before the real digits?" --to remove zero's before the digits..,
i understood the problem in that way 🙂
Hi All,
Good ideas ! n
Non works though.
Any other ways?
Try with Num(FieldName)
This is strange...
i created a test qvw, with some inline data, n i type in the data pattern.
then i apply num(), it works !
BUT, when i extract the code form SAP. and i do num(). it doesn't.
nor... floor(num()) or purgechar(num()) or num(num())
anymore advises?
Nick,
num() seems to work with me - not against SAP data though.
As a 'ye haw!!' cowboy workaround I'd try something like the following in the load script to chop the field down to size:
right(Number,len(Number)-(FindOneOf(Number,'123456789'))+1)
Hope that helps,
Matt
@QlikviewBI
May be SAP adds some char to the string data
Try this
Num(KeepChar(FieldName,'0123456789'))
Hope it may solves the problem
Celambarasan