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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
userid128223
Creator
Creator

Convert String into Double + String

Thx

How do you read a string and convert into DUAL + STRING and also remove leading zeros.

String:

AIOU002343443

000000URREI34343438

5 Replies
vvira1316
Specialist II
Specialist II

Hi,

Include more sample data to better understand the patterns and to come up with logic/functions that will help you.

BR,

Vijay

sunny_talwar

What would be the expected output in the above sample data?

prma7799
Master III
Master III

Please share sample file with expected output.

tresesco
MVP
MVP

May be this?

=Dual(<YourString>, Replace(Ltrim(Replace(Keepchar(<YourString>,'1234567890'),'0',' ')), ' ','0'))

jonathandienst
Partner - Champion III
Partner - Champion III

Perhaps this:

Dual(

  Replace(LTrim(Replace(field, '0', ' ')), ' ', '0'),

  Num(KeepChar(field, '0123456789'))

)

The Replace() will strip the lading zeroes from the text part and the Num() will strip the leading zeroes from the numerical portion.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein