Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Qlik Sense Cookbook. - Second Edition

You're reading from  Qlik Sense Cookbook. - Second Edition

Product type Book
Published in Aug 2018
Publisher Packt
ISBN-13 9781788997058
Pages 334 pages
Edition 2nd Edition
Languages
Authors (3):
Pablo Labbe Pablo Labbe
Profile icon Pablo Labbe
Philip Hand Philip Hand
Profile icon Philip Hand
Neeraj Kharpate Neeraj Kharpate
Profile icon Neeraj Kharpate
View More author details

Table of Contents (16) Chapters

Title Page
Copyright and Credits
Packt Upsell
Contributors
Preface
Getting Started with the Data Visualizations Scripting Managing Apps and the User Interface Useful Functions Set Analysis Using Extensions in Qlik Sense Advanced Aggregation with AGGR Tips and Tricks Other Books You May Enjoy Index

Using the Minstring() function to calculate the age of the oldest case in a queue


Support centers for any organization log several customer cases during the day. These cases are sometimes tagged with a specific status such as contact, and review. Each case goes through different statuses in the workflow until it reaches closed or sign off in the queue. The following example calculates the number of cases in each status of the workflow, and then makes use of the Minstring() function to calculate the number of days passed since the oldest case logged for a particular status.

Getting ready

Load the following script, which gives information on the cases logged at a debt collection agency:

LET vToday=num(today()); 
Case: 
LOAD  CaseID ,DATE(Date#( DateLogged,'DD/MM/YYYY')) as DateLogged, 
Status INLINE [ 
CaseID,DateLogged,Status 
101,01/01/2002,Advice 
101,25/04/2002,Contact 
101,21/06/2003,Creditors Meeting 
101,24/06/2003,Draft Allocation 
101,30/06/2003,Sign off 
102,18/10/2009,Contact 
102...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}