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

Calculating closure status

To find the  Same day closure status of a ticket i am comparing created date and closed date and  the code is as follows:

if(num(makedate(year(Created),month(Created),day(Created)))=num(makedate(year(Closed),month(Closed),day(Closed))), 'Yes','No') as _SameDayClosure

So if a ticket is logged at 4 pm and it is closed within midnight same day closure will be yes.

In my scenario i want to find whether the ticket is closed within 24 hrs so how can i do the calculation i.e if we consider the same ticket logged at 4.00 pm ,it is closed at next day 4.00 pm and  i want to make the status as yes.can anyone help?

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Please post a small qlikview document that illustrates the problem.


talk is cheap, supply exceeds demand
MarcoWedel

If(Closed-Created <= 1 and Closed-Created >= 0, 'Yes','No') as _24hrsClosure