Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Sai33
Partner - Creator
Partner - Creator

Split Text and Numerical Data

Hi All,

 

I have the following data in my ID column 

034781

097453

MUCGA

LIPZL

MELPOA

378431

BRVPOD

 

From this i want to seperate all the 'Text' values into one field and the numericals into one.

 

Name:

MUCGA
LIPZL

MELPOA

BRVPOD

 

ID:

034781

097453

378431

 

 

Thanks.

Labels (1)
1 Solution

Accepted Solutions
martinpohl
Partner - Master
Partner - Master

if(isnum(ID),ID,null()) as ID,

if(isnum(ID),null(),ID) as Name

regards

View solution in original post

4 Replies
martinpohl
Partner - Master
Partner - Master

if(isnum(ID),ID,null()) as ID,

if(isnum(ID),null(),ID) as Name

regards

Sai33
Partner - Creator
Partner - Creator
Author

Thanks for the quick suggestion.

The problem here is i get the data from my Backend system in 'Text' format

Quy_Nguyen
Specialist
Specialist

If the data is text, try this:

If(Len(PurgeChar(Text,'0123456789')) > 0, Text, Null()) as Name,
If(Len(PurgeChar(Text,'0123456789')) = 0, Text, Null()) as ID

Sai33
Partner - Creator
Partner - Creator
Author

Both the solutions work, i actually converted the data into 'Num#' and then used the suggestion from Martin.

Thanks both!