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

convert to number 2

hi,

when i upload the attached excel file on Qlikview, i would like convert the second column SSCC to number.

even if sometime we can see a value of "????" in this column (we should ignore)

thanks

 

5 Replies
Lisa_P
Employee
Employee

try this in load script ..

Num(Evaluate(SSCC),'#0') as SSCC,

 

 

ahmedwank
Contributor III
Contributor III
Author

thanks but unfortunately it doesnt work

tresesco
MVP
MVP

May be just:

Evaluate(SSCC) as SSCCNum

?

If you need to exclude other values, you could try like:

load

       Evaluate(SSCC) as SSCC

From <> where  IsNum(Evaluate(SSCC));

Brett_Bleess
Former Employee
Former Employee

Did Lisa's last reply solve your problem?  If so, please be sure to return to your post and use the Accept as Solution button on Lisa's last post to give her credit for the assistance and let other Community Members know this addressed your problem.  If you require further assistance, please leave an update for us.

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.
veidlburkhard
Creator III
Creator III

Hi Ahmedwank,

why not simply ask if SSCC is numeric?

Like this:

T1:
LOAD N?,
If(IsNum(SSCC), SSCC) as SSCC
FROM
[C:\Users\Burkhard\Desktop\Kopie von ZPS2 1-9-19 au 15-9-19.csv]
(txt, codepage is 1252, embedded labels, delimiter is ';', msq);

Then no values of SSCC with ???? are loaded.

 

Hope this helps.

Burkhard