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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Error in expression ')' expected

Hai,

Load

Id,

qty,

Date

from (etc)

Max(Date) as maxdate

set vmax=floor(peek(maxdate));

if(programdate=Date or programdate=vmax,qty,0) as Qty

if i reload this script means it showing  Error in expression ')' expected.why this error is coming..thanks in advance

10 Replies
sunny_talwar

Can you check your variable by adding a trace statement

A:

LOAD Max(programdate) as MaxDate

Resident 1;

LET vMaxDate = floor(peek('MaxDate'));

TRACE $(vMaxDate);


EXIT SCRIPT;