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

Identify Number and strings

HI,

One column contains strings and numbers. i want to group them and store two separate colums as number and string

I know how to do this with numbers

if(IsNum(Left(Mid(tId,2),1)),tId) as num,

but how can i extract strings?

4 Replies
jagan
Luminary Alumni
Luminary Alumni

HI,

if(Not IsNum(Left(Mid(tId,2),1)),tId) as string,


Regards,

jagan.

jagan
Luminary Alumni
Luminary Alumni

One more method

if(Not IsText(Left(Mid(tId,2),1)),tId) as string,

Regards,

Jagan.

settu_periasamy
Master III
Master III

Can you give some sample data?

May be like this..

KeepChar(tId,'0123456789') as Num1,
KeepChar(Lower(tId),'abcdefghijklmnopqrstuvwxyz') as Text

jonathandienst
Partner - Champion III
Partner - Champion III

Please provide some sample values and your desired output.

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