Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Learn how to migrate to Qlik Cloud Analytics™: On-Demand Briefing!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Purge string

Hi,

some of my account numbers comes with seven zeroes in fornt, need to get rid of them, example below:

000000088899

0000000777111

00000003334

000000066666

should be presented as:

88899

777111

3334

66666

what would be the easiest way to remove these zeroes in the script?

1 Solution

Accepted Solutions
pokassov
Specialist
Specialist

num(evaluate([ACCOUNT NUMBER])) as [ACCOUNT NUMBER],

View solution in original post

25 Replies
Peter_Cammaert
Partner - Champion III
Partner - Champion III

=Num(Field, '#0')

PrashantSangle

Hi,

use num#(FieldName)

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Not applicable
Author

haha, was a bit fast there. Actually it turned all of the "problem accounts" into null.

Any idea why?

Sorry for the hassle.

//O

qlikmsg4u
Specialist
Specialist

Load Num(value) as Value;

Load * Inline [

value

000000088899

0000000777111

00000003334

000000066666

];

sunny_talwar

May be this:

LOAD Num(Num#(Num), '#0') as Num;

sasiparupudi1
Master III
Master III

try num(num#(val)) as value

Not applicable
Author

same result im afraid, null values

qlikmsg4u
Specialist
Specialist

It is working fine for me

Load value,Num(value) as Value1;

Load * Inline [

value

000000088899

0000000777111

00000003334

000000066666

];

Capture.PNG

PrashantSangle

Hi,

Can you post your test app???

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂