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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
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
Partner - Champion III
Partner - Champion III

HI,

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


Regards,

jagan.

jagan
Partner - Champion III
Partner - Champion III

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