Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: sort repeated incident Post Reply Post New Topic
<< Prev Page  of 2
Author Message
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 30 May 2009 at 7:48pm
1. you can do a count on your group records and add a select statement count(table.field,groupfield)>1 ...this has to go in the group select expert section.
2. you can use an if-then -else-if statment to create  single wording... Probably use an instr function but you have to have the logic work for all of your naming conventions and go thru every version if then per word you want grouped on.
it will be something like:
 if instr({probsummarym1.brief.description},"Process H1 is down on qdvp14")>0 then "Process Down" else
 if instr({probsummarym1.brief.description},"shine127 IS DOWN")>0 then "Server Down" else
 if instr({probsummarym1.brief.description},"Instrument is down")>0 then "Instrument Issue" else ...
 


Edited by DBlank - 30 May 2009 at 7:50pm
IP IP Logged
rp123
Groupie
Groupie


Joined: 26 Feb 2009
Location: United States
Online Status: Offline
Posts: 47
Quote rp123 Replybullet Posted: 04 Jun 2009 at 1:39am
Thanks for the reply.

I Actually I want to rephrase my question:

I want to list the word which is written after the "process" in the brief description: Here is the example:

1 03/03/2009 at 11:40:47 Process A is down on Shine1
2 03/03/2009 at 11:51:48 Process A is down on Shine1
3 03/03/2009 at 11:40:49 Process B is down on Shine2
4 03/03/2009 at 2:28:51 Process B is down on Shine2
5 03/03/2009 at 11:40:52 Process C is down on Shine3
6 03/03/2009 at 1:40:40 Process C is down on Shine3
7 03/03/2009 at 11:40:52 Process D is down on Shine3
8 03/04/2009 at 16:40:55 Process D is down on Shine3

So In this case I want to list "Process D is down on Shine3" as D in the report. So whatever written after word "process" I want to list that in the report.

Can you please help. I am very new to crystal report and I am learning phase.

Thankx
rp
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 04 Jun 2009 at 7:31am
Is this always a one character repsonse as in your examples above
Process A
Process B
Process C
 
or are these really words...
 
Process Alpha
Process Beta
Process Sigma
?
IP IP Logged
rp123
Groupie
Groupie


Joined: 26 Feb 2009
Location: United States
Online Status: Offline
Posts: 47
Quote rp123 Replybullet Posted: 04 Jun 2009 at 6:36pm
Yes they are listed as follows:

Process Alpha
Process Beta
Process Sigma.............
rp
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 05 Jun 2009 at 7:45am
You can handle this by creating a formula field to strip the original field down to everything after the word "process" then use another formula field to strip that down to the first word left. I know there is a way to do this in one formuloa but it is eluding me right now.
StripFormula:
if instr({probsummarym1.brief.description},"Process")>0 then mid({probsummarym1.brief.description},instr({probsummarym1.brief.description},"Process")+8) else {probsummarym1.brief.description}
To get the final formula result (e.g. Process alpha) another fomrula as "Process Result":
if instr({probsummarym1.brief.description},"Process")>0 then "Process " + left({@StripFormula},instr({@StripFormula}," ")) else
{probsummarym1.brief.description}
IP IP Logged
<< Prev Page  of 2
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.