Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
roee1983
Contributor III
Contributor III

Function which remove all characters

Hi all,

i have in my model a  field calls "accounts" , this field has values with numbers & characters toghther or only characters.

how do i get rid from all the characters  records  ?

for exapmle:

bb_445642  = 445642

sales = delete from the field.

Thanks

Roee

1 Solution

Accepted Solutions
tresesco
MVP
MVP

try:

purgechar(accounts, '_abcdefghijklmnopqrstuvwxyz')

Not getting easier method yet.

View solution in original post

2 Replies
tresesco
MVP
MVP

try:

purgechar(accounts, '_abcdefghijklmnopqrstuvwxyz')

Not getting easier method yet.

MayilVahanan

Hi

Try like this

if(len(Keepchar(accounts, '_1234567890')) > 0, Keepchar(accounts, '_1234567890'), '') as accounts

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.