Skip to main content
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

1 Solution

Accepted Solutions
sunny_talwar

Try this:

LOAD *

          KeepChar(FieldName, '0123456789') as Number

          PurgeChar(FieldName, '0123456789') as Name

Resident xyz;

View solution in original post

14 Replies
Kushal_Chawda

Try,

Keepchar(Name,'0123456789')

sunny_talwar

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

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

Kushal_Chawda

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.