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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

min and if

I want to sum qty for a range date . the following expression is wrong:

  sum( {<dealdate={">=min({<data_origin={'purchase'},dealdate={'<=$(=$(var_date1))>=$(=$(var_date2))'}>} dealdate)"} >} qty)

or

  sum(if(dealdate >=min({<data_origin={'purchase'},dealdate={'<=$(=$(var_date1))>=$(=$(var_date2))'}>} dealdate),qty)

First I must find a the min date for type of  'purchase'  , and sum the sales's  qty from that date.

0 Replies