Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
psendra
Contributor II
Contributor II

Tracking of open and closed tickets

Good morning,

I have been iterating on this case for several hours now and I am not able to find a suitable solution.

I have a dataset with these fields:

Ticket ID
Ticket Description
Priority
Status
Owner
Date Created
Close Date


I want to get a table in Qlik Sense that allows me to calculate for a given period the number of tickets that were opened in that period, the number of tickets that were closed, the difference of tickets opened - tickets closed in that period and the total number of tickets that are still open accumulated in that period.

My main problem is that I don't know how to relate the dates to work with a single field that allows me to calculate all the expressions I need.

Could someone help me with this?

Labels (1)
2 Replies
MayilVahanan

Hi

Try like below

Load *, Date(DateCreated + IterNo()-1) as Date While Date(DateCreated + IterNo()-1) <= Alt(DateClosed, Today());
Load * Inline
[
TID, DateCreated, DateClosed, Status
1, 10/11/2022, 29/11/2022, Closed
2, 14/11/2022, 19/11/2022, Closed
3, 28/11/2022, , Open
];

It will generate the dates between date created and closed.

In front end, you can use Date field for selection

Open Tickets: Count({<Status = {'Open'}>}DISTINCT TID)

Close Tickets: Count({<Status = {'Closed'}>}DISTINCT TID)

Tickets: Count(DISTINCT TID)

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
psendra
Contributor II
Contributor II
Author

Thank you for your quick response.

In my case, in the status field I can have many values, not only open or closed. Also, I would like to calculate the tickets that were opened on a specific day, not the ones that are still open today.

I attach an example of my data in case it can help you.