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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

compare counts by 2 different dates

Hi I'm am trying to calculate the closure rate for cases by month.

An example of the data is as follows:

Case IDCreated DateClosed Date
1231/7/201412/7/2014
2345/7/20146/8/2014
34513/8/201415/8/2014
45615/8/201428/8/2014

The results I need to see are:

YearMonthNo. Cases CreatedNo. Cases ClosedClosure Rate
2014Jul2150%
2014Aug23150%

My biggest issue is the different dates. I can create a master calendar, but how can I link two different date fields from the same table to it, as they can't have the same field name?

Any help would be appreciated.

1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

Have a look here:

Canonical Date

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

3 Replies
Not applicable
Author

For this case you must have two different calendars one for [Created Date] and other for [Closed Date] . You can have multiple calendars if you have multiple dates and you will need to apply selections or create comparative (rolling periods) analysis. Just name the second one with a different names not only for the table itself but also for the fields, thus:

CalCreateDate

MonthCreateD 

MonthSerialCreateD

YearCreateD

CalClosedDate

MonthClosedD

MonthSerialClosedD

YearClosedD

and so on.

jonathandienst
Partner - Champion III
Partner - Champion III

Have a look here:

Canonical Date

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Not applicable
Author

Thanks. fixed it completely!