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: 
hkg_qlik
Creator III
Creator III

Expression

Hi,

My requirement here is:

I have to claculate the difference between dates to measure oldest ticket still in open state:

vDatetoday = today's date

Status <> 'Closed' or Status <> 'Resolved'

Field which holds the date value = [Incident Created Date]

I am using the following expression but it is getting me the incorrect output.

=Num($(vDateToday)-(MinString( {1<Status -={'Closed'} >} [Incident Created Date])),'#,##0')

Thanks,

H

1 Solution

Accepted Solutions
Miguel_Angel_Baeyens

Hi,

It should work with Interval() and Min(), because dates in QlikView are numeric

=Interval(Today() - Min({< Status -= {'Closed', 'Resolved'} >} [Incident Created Date]), 'DD')

Hope that helps.

Miguel

View solution in original post

1 Reply
Miguel_Angel_Baeyens

Hi,

It should work with Interval() and Min(), because dates in QlikView are numeric

=Interval(Today() - Min({< Status -= {'Closed', 'Resolved'} >} [Incident Created Date]), 'DD')

Hope that helps.

Miguel