Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
gautik92
Specialist III
Specialist III

Remove Records

I have a table with records containing alphabets and numbers but i want to remove the records whic contain alphabets.

ID

101/001

101/002

UPAXY

NFKAO

MAJFJF

I have to remove the records which contain alphabets

1 Solution

Accepted Solutions
sunny_talwar

May be this in the where clause

LOAD FieldName

FROM Source

Where Len(Trim(KeepChar(Upper(FieldName), 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'))) = 0;

UPDATE: Sample attached

View solution in original post

3 Replies
sunny_talwar

May be this in the where clause

LOAD FieldName

FROM Source

Where Len(Trim(KeepChar(Upper(FieldName), 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'))) = 0;

UPDATE: Sample attached

ajsjoshua
Specialist
Specialist

Hi Bro,

Try

keepchar(FIELD, '/0123456789') as NEWFIELD

in your load or equivalent in an expression.

tamilarasu
Champion
Champion

Hi Bro,

If the field values are fully text or number, then you can try like below,

If(Isnum(Left(FieldName,1)),FieldName) as FieldName


or

Where Isnum(Left(FieldName,1))= -1