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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Error in Let statement

What is error in following statement?

let VMaxTrxnDate=max(TRXDATE);

Labels (1)
12 Replies
Anonymous
Not applicable
Author

if you find another way, it will be great

if not, you need to eat a sour apple (you may drop the resident table), the result is more important if it's the

only way to achieve what you want

jagan
Partner - Champion III
Partner - Champion III

Hi Balraj,

You cannot directly use Aggregare functions in LET statement instead you can try like below

MaxTRXDATE:

Load

      Max(TRXDATE) AS MaxDate

RESIDENT Invoice;

let VMaxTrxnDate=Peek('MaxDate');


DROP TABLE MaxTRXDATE;


Hope this helps you.


Regards,

Jagan.

Anonymous
Not applicable
Author

I want to use at backend only.

But no problem as shared by other, will do.