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

Requirement is to show how long this selection was selected

Customer contact - average time between updates - drop downs for each status start -> end times.

The requirement is to show how long this selection was selected for... and then average this across all customers.  So if I do one example. I select 'First customer contact - Customer Call / Email' then I choose 'another one' we would like to know. How long was it selected for based on the date entered by the user in the system, this shows us how long was this item outstanding for.  What complicates this is that the statuses can be selected in any order and there isn't a linear step (1, 2, 3) as they may have success on step 1 or step 4 for example.

  1. So. I think the only way to do it is to take each customer ID and sort by the date of request and then determine the time between updates so.

A                                                                                                           B                                                                                                            C

Customer

Contact Type

Date of Request (in order)

Calculated Field

100

First customer contact - Customer Call / Email

01/09/2015

100

Second Customer contact - Customer call

02/09/2015

1 day (difference between C2-C1)

100

Review conducted, complete documents received

12/09/2015

10 days

The Graph would then show:


graph .png


As it is one day between 'First cus...' to the next ( so it was selected for 1 day) and then 10 days for the 'Second Cus...' to the next item being the selected one.

List of Contact Types:

First customer contact - Customer Call / Email

First customer contact - Customer Call failed - Email &SMS sent

Second Customer contact - Customer call

Second Customer contact - Customer call failed

Third Customer contact - Customer Call

Third Customer contact - Customer Call failed - Email &SMS sent

Fourth Customer contact - Email / Letter / PIB Messaging Sent

Fifth Customer contact - Customer Call

Fifth Customer contact - Customer Call failed

Sixth Customer contact - Email / SMS Sent

Seventh Customer contact - Email / SMS / PIB Messaging Sent

Eight Customer contact - Exit Letter Sent

Appointment / Visit scheduled - Item diarized

Awaiting Documents / Documents to be submitted

Approval Obtained to extend 30-day due date

Review conducted, partial documents received / discrepancy raised

Review conducted, complete documents received

Escalation to PSM / CDD Lead - No Response from RM



Please can any one help with a solution please....!!!1


Thanks in advance

5 Replies
Clever_Anjos
Employee
Employee

Would you mind sharing some sample data?

Not applicable
Author

Hi Clever,

Here is the sample data

     

customer idcontact typedate of request
100call14/09/15
100letter115/09/15
100letter220/09/15
100letter321/09/15
100letter418/10/15
100letter519/10/15
100letter620/10/15
100letter701/11/15
100fax02/11/15
100email03/11/15
100letter104/11/15
100letter205/11/15
200fax16/11/15
200email17/11/15
200call01/12/15
200letter202/12/15
200letter103/12/15
300letter204/12/15
300letter105/12/15
shair_abbas
Partner - Creator
Partner - Creator

i think it might help

num(max(date of request))-num(min(date of request))

Not applicable
Author

Hi

I have already tried the above syntax but  how about if the data we are getting is incremented as per your syntax its for only one set of data. If we see the table the customer ID changes.

Please can you further think of

Thanks in advance..!!

ogster1974
Partner - Master II
Partner - Master II

try aggregating/grouping the measure by customer id something like

AGGR(num(max(date of request))-num(min(date of request)), [Customer id])

Regards

Andy