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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Separate Numbers from text

Hi all,

I have received the data in such a way that two fields are joined together. One of them is numeric and the other is text. I need to split them into individual rows. Is there a function or regex available to achieve this in qlikview?

The field looks like the below:

column 1

999Text

01Supplies

3Gifts

I need to separate the numbers from text as shown below. Please note the numbers always precede the text, so we need not worry about a number appearing in the text. They are also NOT fixed lengths. Any help will be appreciated.

column 1      column 2

999               Text

01                 Supplies

3                   Gifts

Thanks,

Praveen         

Labels (1)
1 Solution

Accepted Solutions
hic
Former Employee
Former Employee

For example

Left(column,Len(Keepchar(column,'0123456789'))) as Num,

Mid(column,1+Len(Keepchar(column,'0123456789'))) as Text,

HIC

View solution in original post

2 Replies
hic
Former Employee
Former Employee

For example

Left(column,Len(Keepchar(column,'0123456789'))) as Num,

Mid(column,1+Len(Keepchar(column,'0123456789'))) as Text,

HIC

Not applicable
Author

Thank you.