Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

set anaylsis (greater and less than)

Hi i have a striaght table per below:

order date
Volume widgets
volume contacts widgets
volume contacts widgets 7 days
1/1/201110114
2/1/20111243
3/1/201131010

To calculate the last field i need to know the order date, the contact date, and the differnace. the current formula looks like below

count(distinct {<contactdate={">=$(daystart((orderdate)))<=$(daystart((orderdate)+7))"}>} contact)

the issue is that this seem to calculate count(distinct contact)

additionally i have attempted a simlar version which just looks after the order date but the outcome is the same.

count({<contactdate={">$(=daystart(today()-122))"}>} contact)

look forward to your comments.

alan

2 Replies
Not applicable
Author

you cant do it in chart if  orderdate is your dimension

could you post a sample file here?

chematos
Specialist II
Specialist II

I think the syntax is like this:

count({<contactdate={' >=$(=daystart(orderdate)) <=$(=daystart(orderdate)+7)'}>} distinct contact)