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: 
Not applicable

Not able to get the intervel in the set expression

Hi Team,

Please suggest if there is some problem in the below expression, as im unable to get the desired result.

 

if

(CaseAge='>30' and (Interval((DayStart((Today()))-DayStart((INCIDENT_DATE))),'DD')>30),COUNT(IN_INCIDENT_NO))

i need to get the count of IN_INCIDENT_NO , if the number of days in difference between the dates is > 30 days...when executed the interval in a text object using max(incident date) it was giving me the correct result, but the same is not when used in set expression for a chart.

also INCIDENT_DATE is having multiple dates...Please suggest at the earliest...

Regards,

Hassan

3 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

simondachstr
Specialist III
Specialist III

Maybe use COUNT(distinct IN_INCIDENT_NO)) ?

sbaldwin
Partner - Creator III
Partner - Creator III

hi, shouldn't you aggregate after applying the condition ie:

count   (   if(CaseAge='>30' and (Interval((DayStart((Today()))-DayStart((INCIDENT_DATE))),'DD')>30),IN_INCIDENT_NO)  )