Skip to Content
author's profile photo Former Member
Former Member

Crystal Select Expert with formulas

Hi,

I have developed a Crystal Report in Version 2013. I have all the data in a Group Header as had to subtotal ID number of employees.

In Select Expert I can't find the formula to rid the employees who have a 0 total can I do this another way???

Thank you.

Yvonne

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 04, 2014 at 02:23 AM

    Hi Abhilash,

    It is a formula in a formula. I used an if, then else function with the formula for the previous field subtracting the measured field.

    eg. If {@formula} > {measure.field} then 0

    else {measure.field} - {@formula}

    The formulas works great but I need to suppress the employees who have a total of 0 so we can only see the employee's with a figure.

    Thank you so much for your help!

    Yvonne

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 02, 2014 at 04:20 AM

    Hi Yvonne,

    You can't do that from the Record Selection Formula.

    Go to Report > Selection Formulas > Group and and use this code:

    Sum({measure field}, {group field}) > 0

    Replace {measure field} with the numeric field and {group field} with the field you've used as the group.

    -Abhilash

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 02, 2014 at 04:41 AM

    Hi Abhilash,

    Thank you for the formula however when I try this it come up with the message cannot summarize this field and highlights the {measure field}.

    Do you know why this would be?

    Yvonne

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.