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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to combine multiple date dimensions in a chart?

I am relatively new to Qlikview, so apologies if this has been asked before, or is fairly straightforward.

I have some help desk type data that comes from one table.  Each help desk ticket has an Opened Date and Closed Date, in addition to other attributes.

Essentially I am looking to create a line chart with MM/YY across the x-axis and the # of tickets as the measure. 

Where my difficulty comes in is we are looking to do a count of both Opened and Closed Tickets for each month.  It is possible for tickets to be opened one month and closed in the same month, or opened in one month and closed in a later month so I cannot used opened date (or closed date) as the dimension.  I am sure I have to some how create a master calendar and join it to both opened and closed month, but I am still a little unclear on how to use just a date dimension and include both # of opened and # of closed tickets for each month).

Hopefully the description is clear enough.  At its root I want to combine both the of the charts in the attached image into one chart, with an independent date dimension.  ie you can see Feb has opened tickets, but not closed tickets, whereas Jan has closed tickets, but no opened tickets.  I would want both of these months included. 

I am not tied to a line chart necessarily, so if I need to use a bar chart or a combo chart  it likely could work too. 

We just want to show the # of tickets opened vs closed for each month consolidated on one chart.  And please don't judge the simplistic formatting, I just threw these together quickly for demonstration purposes

Any suggestions are greatly appreciated!

2015-02-20_11-17-23.jpg

6 Replies
fashid
Specialist
Specialist

Hi,

you might be having some identifier or a flag field for closed ticket and open ticket in your tables. You can use that count against a common date field .

The date field as you already told would be from a master calendar.

see this discussion One table, Two Date Fields

Regards,

Nadeem

Anonymous
Not applicable
Author

Hi Karina,

Count tickets based on UniqueID irrespective of status.

Regards

Neetha

Anonymous
Not applicable
Author

Hi,

Try:

In a Straight/Pivot table:

dimension = Month
expression = count(distinct Ticket)

Regards

Neetha

neha_sri
Creator III
Creator III

Hi Karina,

May be you can work something as you can autogenerate all 12 months and count(closed tickets) and give this line some rgb() and another you can count(open ticket) and give rgb() to it also. In this way you can compare your open vs. closed tickets.

Not applicable
Author

I think you can create independent date field for the years you are working on.i dont see any reason to use the dates present in the data to create a date dimension as that data is not continuous and would show only months that are present in the data

agni_gold
Specialist III
Specialist III

I think this might be a good solution.