Solved

Opened and Closed Trendline

Posted on 2011-02-20
8
235 Views
Last Modified: 2012-05-11
I have a customercases table contains the caseID, the createddatetime, and the resolveddatetime.

For a rolling six month period, I need to chart the number of cases opened and the number cases resolved per week on a single line graph (two lines).

What's the best way of formulating the selection query and how can I graph the two values?  
0
Comment
Question by:c0fee
  • 3
  • 3
  • 2
8 Comments
 
LVL 17

Expert Comment

by:MIKE
ID: 34947741
Try using a crosstab to display your data,...then right-click the top left corner of the crosstab and choose the CHART option....pick your LINE chart and format as needed....

hope it helps....
0
 
LVL 2

Author Comment

by:c0fee
ID: 34948645
Hi,Thanks but I don't think this works quite right.  Using the table alone, doesn't provide me a "global" date to group the values by.  I need some means of saying "for every day that exists in my date time range parameter, count the distinct number of CaseIDs that have a resolveddatetime for each day, and also count the distinct number of CaseIDs that have a createddatetime for each day".
0
 
LVL 34

Expert Comment

by:James0628
ID: 34950140
If I'm following you, the basic problem is that each record could be included in two different groups (createddatetime and resolveddatetime).  I think you may need to create a table will all of the dates in it and then JOIN the customercases table to that twice, once based on createddatetime and once based on resolveddatetime, to get separate "created" and "resolved" counts for each date.

 I'm not sure if you'll be able to do that directly in CR.  It may depend on exactly what you want.  If you only want to see the dates that had a "created" or "resolved" record, then you might be fine.  But if you want to include the dates that had neither, you're going to need to use a LEFT OUTER JOIN, but CR sometimes changes those to INNER JOINS, in which case you won't get those dates.  So, you may need to write your own query (eg. in a CR Command) that creates the counts for the report.

 James
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 2

Author Comment

by:c0fee
ID: 34983753
Thanks James.  I need a way to do it in CR.  It would be very difficult for me to pass the request to have a database table filled with just dates.  Any other ideas?
0
 
LVL 34

Accepted Solution

by:
James0628 earned 500 total points
ID: 34986810
Well, it doesn't necessarily have to be a table.  It could be an Excel file, for example.  That presents its own limitations, starting with the fact that probably only one person will be able to access the file (ie. run the report) at a time, but it is a possibility.

 Assuming that I was correct and you want to include each record in two different and overlapping groups, one based on createddatetime and one based on resolveddatetime, then I don't know if there's any other/good way to do that in CR.  Then again, I don't work with charts much.  If no one else suggests anything, you could try the "Request Attention" link to see if you can get someone else to join in.

 James
0
 
LVL 17

Expert Comment

by:MIKE
ID: 34988901
Manual Crosstab using the actual report as the basis. IFyou data will work within a Crosstab, but Crystal's Crosstab won't handle the advanced formatting or placement of the cell logic, then you can switch over to a MANUAL CROSSTAB which is basically building ALL of the logic within the reporting sections so that the final report has the appearance of the CR automatic crosstab, but in actuality it is very advanced Crystal Report....

Hope it helps,....
0
 
LVL 2

Author Comment

by:c0fee
ID: 35031041
Thanks to both of you!  I decided to create a dummy view that has each date required.  CRXIUser2005 - I must be really dense because I don't know how to switch to a manual crosstab.  But I'll keep it in mind for future research.
0
 
LVL 34

Expert Comment

by:James0628
ID: 35042731
"Manual cross-tab" just means that you create something that looks like a cross-tab, but you actually do everything yourself.  Create formulas that are used to produce the data for each column and that kind of thing.  I don't really think that that would help with your basic problem of trying to include records in two different groups (one based on createddatetime and one based on resolveddatetime).

 James
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question