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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
fkeuroglian
Partner - Master
Partner - Master

num in qlikview format

i am load a csv, but some field like IMPORTE1 doing num function does not transform in num

attached a qvw , the field IMPORTE1 is a text but in the load i am converting to num

what could be?

Thank you

Fernando

1 Solution

Accepted Solutions
MarcoWedel

Hi Fernando,

Num(Num#(@13, '#,##0.00' ,'.',','), '#.##0,00') as importe1

the decimal separator can't be set with the format string, it has to be defined with a separate parameter in the num#() and num() functions if different from the default setting (like in your case: SET DecimalSep=',';)

QlikCommunity_Thread_148461_Pic1.JPG

hope this helps

regards

Marco

View solution in original post

3 Replies
ecolomer
Master II
Master II

Trata de eliminar, por si los hay caracteres diferentes de los números con:

Num(Keepchar (importe1, '1234567890.,')) as importe

MarcoWedel

Hi Fernando,

Num(Num#(@13, '#,##0.00' ,'.',','), '#.##0,00') as importe1

the decimal separator can't be set with the format string, it has to be defined with a separate parameter in the num#() and num() functions if different from the default setting (like in your case: SET DecimalSep=',';)

QlikCommunity_Thread_148461_Pic1.JPG

hope this helps

regards

Marco

Clever_Anjos
Employee
Employee

you´re mixing decimal separators

Your data uses '.' as decimal separator

You app uses ',' as decimal separador

SET ThousandSep=',';

SET DecimalSep='.';

at beginning of your code should solve this

OR use

purgechar(@13, '.,' )/100 AS importe1,