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

Tricky date question

Hi, I've been asked to generate a chart that shows New reports and Corrected Reports by date. It would look like this:

DateNew ReportsCorrectionsTotal Reports
9/1/201001010
9/2/20100924924
9/3/201005252
9/4/201006161
9/5/201043872915
9/6/201074841915
9/7/20101519071058
9/8/2010217742959
9/9/2010328637965
9/10/20103986125
9/11/20104759106
9/12/2010435469904
9/13/20106513891040
9/14/201011322921424
9/15/20107962341030
9/16/2010781896
9/17/201052355
9/18/20108519104
9/19/2010739113852
9/20/2010845102947
9/21/2010983991082


The problem is the New Reports come from one table with the date it was received, and the corrections come from another table with the date it was corrected. The user would like to pick a calendar date and see the new reports and corrected reports for that day. I've been looking into date islands but can't seem to find the right approach. This is probably a common problem, but how can I get the the three dates to line up?

The dates are

FLOOR_RCVD_DATE from New Reports

FLOOR_CORRECTED_DATE from Corrected Reports

CalendarDate from Calendar date island.



Thanks.

Don

Servicelink, Pttsburgh, Pa

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Don,
See my test application in a response in this thread, front end table "Example 1" - I think it is similar to your question.

View solution in original post

5 Replies
Anonymous
Not applicable
Author

Don,
See my test application in a response in this thread, front end table "Example 1" - I think it is similar to your question.

MichaelRobertshaw
Former Employee
Former Employee

Concatenate the two tables, so that your resulting table has the Date, New and Corrected columns. In your chart you will have Date as a Dimension, then Sum(New), Sum(Corrected) and Sum(New)+Sum(Corrected) as Expressions. It is tempting to replace the Dimension with a Cycle Group that contains Year,Month,Date.

Not applicable
Author

Thank you all for your help. I'm testing the various approacheds you all suggested. I'm still working on getting the date formats to match to make it work.

Not applicable
Author

Michael, thank you. I used the date island approach. I had some problems with the dates in your other solution because the fields were time stamped with hours and minutes and I just couldn't get them to match.

Anonymous
Not applicable
Author

Don,
You can always convert timestamp to a date by cutting off the fraction part using floor() function:
date(floor(YourTimeStampField)) as YourDateField