
Contributor III
2018-11-23
02:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to load only numbers in field?
Hi
I have field Data like below
Data:
abc1927-23
2345asjjh123sdh
dr34
text123
111.
222.
333.
I want load only numbers instead of string.and remove the (.)in number.
Output:
111
222
333
Thanks
1,731 Views
3 Replies


MVP
2018-11-23
02:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try it with:
t: load replace(FIELD, '.', '') as FIELD from Source where isnum(replace(FIELD, '.', ''));
- Marcus

Partner - Contributor II
2018-11-23
04:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
keepchar(FIELD,'1243567890') as FIELD where isnum(keepchar(FIELD,'1243567890'))
which would remove all non-number chars
1,721 Views

MVP
2018-11-23
07:24 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Another possibility
Table: LOAD Num(Num#(Data, '##.')) as Data Where Num(Num#(Data, '##.')); LOAD * INLINE [ Data abc1927-23 2345asjjh123sdh dr34 text123 111. 222. 333. ];
