Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements
BARC’s The BI Survey 19 makes it official. BI users love Qlik. GET REPORT
mans1985
New Contributor

Using Qlikview, Issue with Len Function

I have the following line of codes in the load script :-

Set chknbr1 = 'D330836','D329537';

Let chknbr = len($(chknbr1));

Then, I am getting chknbr <NULL>

If I write like the following :-

Set chknbr1 = 'D330836','D329537';

Let chknbr = len('$(chknbr1)');

Then I am getting the following error :-

Script line error:

Let chknbr = len('''D330836'',''D329537''')

Any help would be highly appreciated !! 🙂

4 Replies

Re: Using Qlikview, Issue with Len Function

Let chknbr = len(chknbr1);



hope this helps


regards


Marco

Re: Using Qlikview, Issue with Len Function

please don't create multiple threads for the same question:

Qlikview :- Using Len function and getting an error/Null values

thanks

regard

Marco

vvira1316
Valued Contributor II

Re: Using Qlikview, Issue with Len Function

Set chknbr1 = 'D330836','D329537';
Let chknbr = len(chknbr1);

Not sure what is your expected output but above will give chknbr = 19

Re: Using Qlikview, Issue with Len Function

QlikCommunity_Thread_317245_Pic1.JPG

hope this helps

regards

Marco