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

Announcements
Note: You may notice some temporary visual or styling issues in the Community. Our vendor is actively investigating.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Calculate Aging of Incidents

Hi,

I have a oracle database showing the below data:

Incident NumberLast Resolved DateReported DateStatus
INCIN00029116998/10/2016 17:026/1/2016 9:12Closed
INCIN00029118526/1/2016 12:006/1/2016 9:01cancelled
INCIN00029118546/2/2016 14:456/1/2016 9:03Closed
INCIN00029118706/3/2016 16:216/1/2016 9:30Closed
INCIN00029119126/1/2016 14:156/1/2016 9:32cancelled
INCIN00029119187/13/2016 12:506/1/2016 9:32cancelled
INCIN00029119216/1/2016 9:486/1/2016 9:33Closed
INCIN00029119236/1/2016 12:056/1/2016 9:35Closed
INCIN00029119377/14/2016 15:236/1/2016 8:59resolved
INCIN00029120486/2/2016 14:576/1/2016 9:04resolved
INCIN00029121886/7/2016 14:346/1/2016 9:26Closed
INCIN00029123316/1/2016 11:506/1/2016 9:27assigned
INCIN00029124066/2/2016 17:126/1/2016 10:18assigned
INCIN00029125166/3/2016 12:276/1/2016 10:22Closed
INCIN00029125496/3/2016 5:256/1/2016 10:03Pending

I need to calculate the aging of the incidents. Formula for aging is "last resolved date - reported date".  Need a bar graph showing aging as

  • <1 day
  • >1 and <=3 days,
  • >3 and <=7 days,
  • >7 and <=15 days,
  • >15 and <=60 days,
  • > 60 days.

Please assist me in doing this.

4 Replies
Not applicable
Author

Hi, There is one more condition to be applied. The graph should show aging only for closed a,d resolved tickets.

Thanks,

Arun

agomes1971
Specialist II
Specialist II

Hi,

please see attached post.

HTH

André Gomes

Anil_Babu_Samineni

If your issue is similar then try expression

This expression for second one

count({<Status = {'Closed','resolved'}>} Incident_Number)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Not applicable
Author

Hi,

Thanks for the reply. I go to know some new formulas. Please see the below data:

     

Incident NumberLast Resolved DateReported DateStatusGroup
INCIN00029116998/10/2016 17:026/1/2016 9:12Closedservice desk
INCIN00029118526/1/2016 12:006/1/2016 9:01cancelledservice desk
INCIN00029118546/2/2016 14:456/1/2016 9:03Closedservice desk
INCIN00029118706/3/2016 16:216/1/2016 9:30Closedservice desk
INCIN00029119126/1/2016 14:156/1/2016 9:32cancelledsupport
INCIN00029119187/13/2016 12:506/1/2016 9:32cancelledsupport
INCIN00029119216/1/2016 9:486/1/2016 9:33Closedsupport
INCIN00029119236/1/2016 12:056/1/2016 9:35Closedsupport
INCIN00029119377/14/2016 15:236/1/2016 8:59resolvedit
INCIN00029120486/2/2016 14:576/1/2016 9:04resolvedit
INCIN00029121886/7/2016 14:346/1/2016 9:26Closedit
INCIN00029123316/1/2016 11:506/1/2016 9:27assignednetwork
INCIN00029124066/2/2016 17:126/1/2016 10:18assignednetwork
INCIN00029125166/3/2016 12:276/1/2016 10:22Closednetwork
INCIN00029125496/3/2016 5:256/1/2016 10:03Pendingnetwork

I would require the graph with group as dimension and aging in expressions and the graph should show only the closed and resolved number of incidents. I am using the  following formula in expression. It shows aging correctly but it is not showing for closed and resolved. It shows all the incidents with 1 to 3 days aging.

=count(

  if ( ["Fact Ticket"."Last Resolved Date"]-["Fact Ticket"."Reported Date"] > 1 and ["Fact Ticket"."Last Resolved Date"]-["Fact Ticket"."Reported Date"] <=3 ,

  if(["Status"."Status"]='closed','resolved',

   ["Fact Ticket"."Incident Number"]

   )))

Please assist on this.