Solved

Filter Results Question

Posted on 2013-06-03
10
244 Views
Last Modified: 2013-06-24
Hello,
      I have a crystal report I wrote to show me all open work orders in our database. I have it grouped by work order id, then work order release id and then part number id. In the details of the report I have several items. One of them is the operations, (sequences), of the work order. These are the steps that make up the work order. The report runs fine and the data is accurate. I would like to filter this report to only show me the open work orders that have an operation that starts with a specified text. I can use select expert to just show me the operations that start with the specified text but I want to see the other operations for that work order that don’t start with the specified text. Any help would be appreciated.

Thank you
0
Comment
Question by:daskas27
  • 5
  • 5
10 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 39216256
If you can do it, build a stored procedure in the database.

You could also build a command to return the items you want.

You can do it in the report through the group select expert.  This is really just a suppression of the groups that don't meet the criteria so if you have summaries they will reflect the suppressed records.

Create a formula

If InStr({YourField},"YourText") > 0 then
    1
Else
    0

Click REPORT --> SELECTION FORMULAS --> GROUP EXPERT
Sum({YourFormula},{OperationsField}) > 0

mlmcc
0
 

Author Comment

by:daskas27
ID: 39226840
No workie.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 39227043
How doesn't it work?

mlmcc
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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.

 

Author Comment

by:daskas27
ID: 39271198
Please see the attached file.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 39271300
You forgot to attach the file

There is a comment field you have to put something into or else the attachment won't be added.

mlmcc
0
 

Author Comment

by:daskas27
ID: 39271308
Please see attached, again.
Formula.pdf
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 39271405
Why do you believe it isn't working?

The string comparison is generally case-sensitive.

mlmcc
0
 

Author Comment

by:daskas27
ID: 39271835
Please see the last page of the screen prints. That is as far as I get.
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 39271863
Sorry.  I didn't [age through it far enough.

WHen you use formulas like

Sum({Field1},{Field2})

Field2 must be one of the groups in the report.  You have 3 groups so those are the only fields you can use.  If you need to use another field for the sum to group on, you need to add it as a group

mlmcc
0
 

Author Closing Comment

by:daskas27
ID: 39271957
Bingo! It works just as I wanted.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

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. …
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
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…

809 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