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

one small query.. one giant leap for my project.

Morning all,

I have completed around 90% of my first qlikview project.. I say "I" its been about 3 posts on here and lots of help from a colleague but non the less its at about 90%.

I have one final task to do before it is ready for customer testing.

My example data set might be...

DateJobCallsAbnAbn %
26 Feb 091781679%
02 Mar 0922102713%
04 Mar 093990333%
11 Mar 094997222%
16 Mar 095652315%
16 Mar 096432286%


What I would like to do is filter this data to only show me the highest abandoning job per week. For example in this table the highest job for W/C 01 Mar 09 is Job 2. For W/C 15 Mar 09 it is Job 5.

I dont currently have a W/C field but if that would make it easier to calculate it can be added very easily.

6 Replies
Not applicable
Author

Hi,

Sorry for the question, but what do you call W/C ?

Sébastien

Not applicable
Author

W/C = Week Commecing. I also define my first day of the week as a Sunday.

Not applicable
Author

To get your first day of the week, beginning on Sunday you can use function Weekstart:

weekstart (Date,0,-1) ( -1 is here to tell system to begin on sunday).

Not applicable
Author

Thanks,

That should hopefully help when i come to trying to filter it down to show me the top abandoning job per week.

prieper
Master II
Master II

Please see the attached, which tries to solve your problem within the script.

Peter

Not applicable
Author

Thanks Peter,

Technically that is correct and exactly what I am after however I should have explained my data correctly.

the table I sent was an example of how my data is looking at the moment. In actual fact my source data is split down to individual call level then summed by job number.

My raw data actually looks something like this.. I am calculating where we make a connection but then the call is abandoned.

JobFake KeyJob DateCall TimeConnectAbandoned
121386316-Mar-0908:30:3110
159047316-Mar-0908:32:5610
143251916-Mar-0909:57:0211
176450616-Mar-0910:46:5510
150899616-Mar-0911:40:2210
134707016-Mar-0913:11:1510
137281916-Mar-0913:48:5710
135158816-Mar-0913:55:5210
163788816-Mar-0914:39:1011
278892916-Mar-0909:35:3110
296925516-Mar-0909:48:1611
275064216-Mar-0910:50:3110
224832916-Mar-0912:07:1810
283739516-Mar-0912:18:4510
285385316-Mar-0912:30:4910
248167416-Mar-0913:40:1110