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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
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);

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.