Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to Determine Timeline


Hi,

I have a list of customers with Contract Start and Contract End Dates. I like to find out:

1. How many customers's contract end next day?

2. How many customers' contract end within Seven dayas? I want to select the date value as input, and QlikView must list those customers that fall outside the selected date.

3. How many customers' contract end with March 31, 2014?

I have appended the sample data

CustomerContract StartContract End
A8/9/20138/8/2014
B7/15/20117/14/2014
C9/17/20139/16/2016
D3/31/20133/31/2014
E4/19/20114/18/2014
F5/28/20115/27/2014
G6/16/20116/15/2014
H10/18/201110/17/2014
I5/12/20115/11/2014

The output must list customers who fall outside the selected date. Any suggestions are welcome

Thanks,

3 Replies
Not applicable
Author

With the intervalmatch function you can answer 1 and 3 and probably 2 too.

Google on how to use and im sure you find the technical designblog and other helpful articles

hope it helps!

swuehl
MVP
MVP

In principle, you should be able to use a simple if() condition or set analysis, like for a)

=count(if([Contract End]=today()+1, Customer))

or

=count( {<[Contract End]= {'$(=Date(today()+1))'}>} Customer)

For b) and c)

=count( {<[Contract End]= {">=$(=Date(vSelectedDate))<=$(=Date(vSelectedDate+7))"}>} Customer)

=count( {<[Contract End] = {'3/31/2014'}>} Customer)


The output must list customers who fall outside the selected date. Any suggestions are welcome

Thanks,

If you want to list the customers that doesn't match above, use the -= operator, like

=count( {<[Contract End] -= {'3/31/2014'}>} Customer)

Not applicable
Author

You can add a third field with the difference between the two: "days since end contract" and drive the selection with a variable.