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: 
jblomqvist
Specialist
Specialist

How to visualise the life of an enquiry from start to finish. Including status changes?

Hi all,

Let's say I have an enquiry status table like this:

enquiry_numberenquiry_log_numberlogged_dateofficer_codeenq_status_code
112005-12-09 11:05:55.783MKB0020
122005-12-09 16:16:54.607MKB0020
132005-12-14 11:46:27.557RW0010
142005-12-14 11:50:22.377RW0010
152005-12-14 17:47:56.717SBS0010
162005-12-15 14:38:00.893SBS0020
212005-12-09 13:39:57.783MKB0020
222005-12-09 14:42:03.510MKB0020
232005-12-09 16:16:30.660LDEA0020
242005-12-12 16:55:32.933LGAR0020
252005-12-14 17:47:50.403SBS0020
262005-12-16 14:24:34.513RW0020
272005-12-16 14:24:38.983RW0020
282005-12-16 14:24:43.107RW0030
292005-12-16 14:27:45.500SBS0030
2102006-02-10 16:41:09.433RW0030
2112006-02-13 16:04:25.280JBOO0060
2122006-04-18 15:17:10.390BC0060
2132006-11-07 13:23:33.323MW0060
2142006-11-07 13:24:42.833RW0060
312005-12-09 15:24:28.793PM0020
322005-12-09 15:53:21.527PM0020
332005-12-09 15:53:34.857PM0020
342005-12-09 15:54:17.287IPH0020
352005-12-14 17:47:46.917SBS0020
362005-12-16 14:25:16.497SBS0030
372006-02-10 16:41:04.867RW0030
382006-11-07 13:23:38.917MW0030
392006-11-07 13:24:38.753RW0030

The enquiry_log_number is recording every status change an enquiry goes through.

What I would like to do is visualise the status change each enquiry goes through in it's life from the very first log number of an enquiry to the latest log number.

I would like to see how long an enquiry status stayed between each status change. You can use logged_date field for this.

Does anyone know how I can visualise something like this? If anyone has some examples using the sample data it would be great.

1 Reply
benjamins
Partner - Creator
Partner - Creator

Hi John,

this is quite a common problem with no single correct answer.

See my attached sample.

What you need to do in any case is calculate the time between two status. This is usually done using Previous() function (in script).

The matter of visualization is a bit more difficult. I have included two sample charts. One with accumulation and one without.

Those charts become unreadable when a) a lot of issues are viewed and b) the duration between steps vary greatly.

You may want to create different classes depending on duration. Example: <1h. <4h, <8h, <1d, <3d, etc.

Or perhaps you only want to display issues with a maximum total Duration of 100 days, or, or, or the possibilities are endless.

This depends totally on your business needs.