Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
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))