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

isnum() expression not recognizing large number as a number

I need to identify the data that contains a number in the 'Field' column. I put the if statement in the editor. If it sees a number < 10, it picks it up as Numeric. If the number is huge, like 311521470029562, it looks at it like as Alphanumeric (based on the if statement). Why does the ifnum() not working for larger numbers?

if(isnum(FieldInQuestion), 'Numeric', 'Alphanumeric') as Field,

mp802377_0-1682361992980.png

 

 

Labels (1)
1 Solution

Accepted Solutions
Kushal_Chawda

@mp802377  Qlik interprets number only up to 14 digits.  In your case digits are 15 which is why it is interpreted as text.

If you want to show it as Numeric, you need to tweak the condition like below

if(isnum(FieldInQuestion) or KeepChar(FieldInQuestion,'0123456789')=FieldInQuestion, 'Numeric', 'Alphanumeric') as Field

View solution in original post

2 Replies
Kushal_Chawda

@mp802377  Qlik interprets number only up to 14 digits.  In your case digits are 15 which is why it is interpreted as text.

If you want to show it as Numeric, you need to tweak the condition like below

if(isnum(FieldInQuestion) or KeepChar(FieldInQuestion,'0123456789')=FieldInQuestion, 'Numeric', 'Alphanumeric') as Field

edwin
Master II
Master II