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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Where is the error?

Hi,

Where is the error?

I want to take a record in a table



let

cont=0;

For

i=0 to '$(numrighe)'

if

let cont=cont+1;

next



Thanks a lot

( startDate > peek('Invoice Date',$(i),'SALESDETAILS'))



3 Replies
gauravkhare
Creator II
Creator II

hi,

can you please be more precise with your query...i mean kindly revert back with what you require...as per your post this scripting looks quite fine to me. after you write this code and press check what is the error it's showing up?

if possible kindly send a screen shot with your requirment.

Not applicable
Author

There is an error in the line of if()....

Thanks

Not applicable
Author

Hi,

I think u miss then in the If statement, try below statement

if(startDate > peek('Invoice Date',$(i)),'SALESDETAILS')