Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
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         

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.