• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 281
  • Last Modified:

Crystal Reports: Surpression Formula

I am trying to write aformula stating to surpress field if group {Orders.OrderNo} does not contain {OrderRouting.OperCode} = "P-Mazak".  Thanks for your help
0
bmessmore
Asked:
bmessmore
  • 2
  • 2
1 Solution
 
mlmccCommented:
Try this

Add a formula to the report
Name - HasPMazak
IF {OrderRouting.OperCode} = "P-Mazak" then
    1
Else
    0

Suppress with

Sum({@HasPMazak},{Orders.OrderNo}) = 0

mlmcc
0
 
bmessmoreAuthor Commented:
That gives me an error that says remaining text does not appear to be part of the formula and highlights the entire formula
0
 
mlmccCommented:
What did you put in the formula.

There are 2 formulas
First one you create and name HasPMazak

     IF {OrderRouting.OperCode} = "P-Mazak" then
         1
     Else
         0

The second one is the suppression formula for the field

       Sum({@HasPMazak},{Orders.OrderNo}) = 0

mlmcc
0
 
bmessmoreAuthor Commented:
That did it.  Thank you!
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now