Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Displaying a call at its highest priority Post Reply Post New Topic
Author Message
skyliner34
Newbie
Newbie


Joined: 20 Oct 2011
Online Status: Offline
Posts: 18
Quote skyliner34 Replybullet Topic: Displaying a call at its highest priority
    Posted: 16 Jan 2012 at 12:46am
Hi,
   I have a report at the moment that almost provides 100% of what I need, just 1 last annoying thing to sort out and I am hoping that you can assist.
 
   Database is a Remedy DB and at the moment I run a report that lists all calls that were a priority 1 or 2 throughout the course of their 'life'. This does work, in a way, and returns a list of calls but instead of showing the highest priority the call reached, it displays the priority it was resolved at.
 
   So if a call reaches a P2 and is then dropped to a P3 for monitoring whilst the fix is proved, the report will list it as it did reach 2, but it will only display the priority as a 3.
 
   Here is an example of what I mean. You will see that a number of calls are reported at their highest priority, as they were never reduced and therefore show at their highest priorty. You will see however that a few P3 calls are listed, so they must have been a P1 or 2 at somepoint, what I would like to know is if there is a way to display the highest it reached.
 
 
Create_Time Priority Case_ID_
01/09/2011  21:31:58     2 SD582659
02/09/2011  10:49:08     2 SD582727
03/09/2011  08:15:43     3 SD582831
05/09/2011  08:31:39     3 SD582917
05/09/2011  08:17:48     2 SD582918
05/09/2011  09:19:17     3 SD582957
05/09/2011  12:30:50     2 SD583083
05/09/2011  22:28:40     2 SD583232
06/09/2011  07:48:24     1 SD583242
 
 
 
Many thanks for any advice you can offer.
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 16 Jan 2012 at 3:57am
probably because this is how I write reports, but the first solution that comes to mind is to write a stored procedure so that you can control what priority to display.
 
the next idea, is that there is a list of priorities that the call has had over its life, and you could write a subreport to pull the highest priority and return it to the main report using a shared variable (or if you just want the number and don't plan to count it or anything, you could just display the subreport as the priority)
 
I try to avoid subreports as they will impact the performance of a report as they will connect and query the database, but sometimes they are unavoidable.
 
HTH
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.