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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Show only numbers

Hi All

I have field with values both numbers and text but I want to show only numbers from that.

How can I achieve the same.

Thanks for the help

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

Try this:

LOAD *

          KeepChar(FieldName, '0123456789') as Number

          PurgeChar(FieldName, '0123456789') as Name

Resident xyz;

View solution in original post

14 Replies
Kushal_Chawda
MVP
MVP

Try,

Keepchar(Name,'0123456789')

sunny_talwar
MVP
MVP

Use this as your expression: =If(IsNum(Field), Field)

Not applicable
Author

Hi ,

I am getting blank values while I am using this

Not applicable
Author

Hi,

It works. let me test it completely

awhitfield
Partner - Champion
Partner - Champion

Can you post some sample data / script details?

Andy

sunny_talwar
MVP
MVP

I think Kush141087‌ understood your requirement better than I did.

Kushal_Chawda
MVP
MVP

hey sunindia i think question was not structured well.Field values have both numbers and text means you understood correctly. May be i did not understand properly but may be i will lucky

sgrice
Partner - Creator II
Partner - Creator II

ALT(Field)

krishna20
Specialist II
Specialist II

HI,

Try this

=purgeChar(Data,'()ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz')

Find the sample also.