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: 
felcar2013
Partner - Creator III
Partner - Creator III

Set Analysis time interval

Hi

i want to get an Expression (as in table), which is given by

sum({$<ControlGroup ={'nein'}>} Sales)/count({$<$(vSet),ControlGroup ={'nein'}>} contact_ID)

-

sum({$<ControlGroup ={'ja'}>} Sales)/count({$<$(vSet),ControlGroup ={'ja'}>}contact_ID)

i want to narrow the expression on a purchase_date field interval for every action, whose limits are the fields [From - To] dates. This is, Campaign A consists of Actions {A1,...., A9}, which were carried out based on the dates "From - To". The value of the expression shall adjust to the purchase_date selected.

I tried this formula, but i do not get the desired result:

sum({$<purchase_date = {">=$(From)<=$(To)"}, ControlGroup ={'nein'}>} Sales)/count({$<$(vSet),ControlGroup ={'nein'}>} contact_ID)

-

sum({$<purchase_date = {">=$(From)<=$(To)"},ControlGroup ={'ja'}>} Sales)/count({$<$(vSet),ControlGroup ={'ja'}>}contact_ID)

do you have any suggestions on this?

thanks

Felipe

Table summary:

Campaign

Action

From

To

Expression

AA108.06.201330.06.20139.57 €
AA228.05.201315.06.20135.25 €
AA329.05.201315.06.2013-0.97 €
AA429.05.201315.06.2013-2.40 €
AA531.05.201315.06.20138.64 €
AA631.05.201315.06.20134.46 €
AA731.05.201315.06.201310.32 €
AA831.05.201316.06.20136.04 €
AA931.05.201316.06.20138.03 €
Total -0.98 €
0 Replies