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

formula not working in Crystal Reports

Hello All,

I have a requirement where i need to display Flag = '*****' (5 stars) in the report level. The data in the database for this Flag is '*' (Single star)

I wrote a formula in the formula fields, new -- Flag -->

IF {table.difference_flag} = ‘*’ THEN ‘*****’

ELSE ‘#’

when i had included this field in the report level, value is not getting displayed.

what is wrong in the formula?

Best Regards

Sandeep

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 07, 2013 at 08:35 PM

    So what gets displayed in the report... is there a space associated with the database field of star (*) In that case trim the space before comparison..

    Check if the base comparison is being successful or not by a small formula that will tell if there is a issue with the data...

    IF {table.difference_flag} = ‘*’ THEN "SUCCESS"

    ELSE ‘FAIL"

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 07, 2013 at 10:01 PM

    Can u please provide a screenshot of output so that we can help u more...

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 12, 2015 at 01:44 PM

    This message was moderated.

    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.