Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
gopal5879
Creator
Creator

Need help about Age bucket calculation, attached clear sample data

How can I transform the data into data highlighted in Orange and create pie chart or chart that makes meaningful

Appreciate your help

   

Original QlikView DataSet available in QLiKVIEW
QueueAPPIDDATEQUEUEAGEAgeBucket
Q1100010/1/201711 day
Q1100010/2/201722 day
Q1100010/3/201733 days
Q1100010/4/201744 or plus
Q1100010/5/201754 or plusmax Queue Age record For this Queue and APPID
Q2100010/1/201711 day
Q2100010/2/201722 day
Q2100010/3/201733 days
Q2100010/4/201744 or plus
Q2100010/5/201754 or plusmax Queue Age record For this Queue and APPID
QueueAPPIDDATEQUEUEAGEAgeBucket
Q3100010/1/201711 day
Q3100010/2/201722 daymax Queue Age record For this Queue and APPID
Final Output Selection Needed
Q1100010/5/201754 or plusmax Queue Age record For this Queue and APPID
Q2100010/5/201754 or plusmax Queue Age record For this Queue and APPID
Q3100010/2/201722 daymax Queue Age record For this Queue and APPID
Final Age Bucket  Needs as below  for Pie Chart
Age Bucket Count
4 or plus2Distinct of ( Q1, 1000), (Q2 ,1000)
2 Day1Distinct of ( Q3, 1000)
2 Replies
sunny_talwar

This?

Capture.PNG

Straight table on the top

Dimension

Queue

APPID

Expressions

=Date(FirstSortedValue(DATE, -QUEUEAGE))

=Max(QUEUEAGE)

=FirstSortedValue(AgeBucket, -QUEUEAGE)

Pie chart at the bottom

Dimension

=Aggr(FirstSortedValue(AgeBucket, -QUEUEAGE), Queue, APPID)

Expression

=Count(DISTINCT APPID&Queue)

gopal5879
Creator
Creator
Author

Thanks a lot Sunny, I am testing it now