Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
SaraKK
Contributor
Contributor

count number of days over a specifies value

Looking af calls over a specified data range. I want to see how many days we have answered over 20 calls.

But it ignores my "answered_contact_qty= {"=count(answered_contact_qty)>= 20"}" - All others work

 

count({<date =,queue = {'xxx'}, date.autoCalendar.Year = {'2023','2024'}, subarea = {'xxx'}, answered_contact_qty= {"=count(answered_contact_qty)>= 20"}, [date.autoCalendar.YearMonth] -= {'2023-Jan','2023-Feb','2023-Mar','2023-Apr','2023-May','2023-Jun','2023-Jul','2023-Aug','2023-Sep','2023-Oct'}>} distinct date)

Labels (1)
2 Replies
steeefan
Luminary
Luminary

You need to use dollar expansion on that: answered_contact_qty= {"$(=count(answered_contact_qty)>= 20)"}

Chanty4u
MVP
MVP

Try this 

Sum({<date =, queue = {'xxx'}, date.autoCalendar.Year = {'2023','2024'}, subarea = {'xxx'}, answered_contact_qty = {"=count({<date =, queue = {'xxx'}, date.autoCalendar.Year = {'2023','2024'}, subarea = {'xxx'}>} answered_contact_qty)>= 20"}, [date.autoCalendar.YearMonth] -= {'2023-Jan','2023-Feb','2023-Mar','2023-Apr','2023-May','2023-Jun','2023-Jul','2023-Aug','2023-Sep','2023-Oct'}>} distinct date)