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: 
danielnevitt
Creator
Creator

Expression help

Hi,

I have the following expression and I would like to add where trade_dt is less than a variable vyesterday.

Sum(aggr(sum(DISTINCT pos_lots),pcr_num))

Let vYesterday = Date(Today()-1,'DD/MM/YYYY');

Regards,

Daniel

2 Replies
tresesco
MVP
MVP

May be this?

Sum(aggr(sum(DISTINCT {<trade_dt={'<$(vYesterday )'}>}pos_lots),pcr_num))

sunny_talwar

or this:

Sum(Aggr(Sum(DISTINCT {<trade_dt = {"$(='<' & vYesterday)"}>} pos_lots), pcr_num))