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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
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