Crystal Reports XI – need to set value to null

5 pts.
Tags:
Crystal Report XI
I can't seem to find how to set a value to NULL in CR.

I need to find the average for a calculated field.  However not all of the records should be included in the calculation so I attempted to create a conditional formula to exclude the records that should not be in the average.  I did this with an If/Then statement.  If the records pass the test, then I calculate the value for that record.  If they don't pass the test, I want the value to be NULL so it isn't factored in the Average. 

the formula looks something like...

If (conditions are met) then   return this calculated value Else NULL

I then add a summary field to the report configured to be the average of the above calculated field.  However, when I omit the Else clause, the value is set to '0.00' which affects the average. 

How would I set the value to NULL or is there another way of accomplishing this?

Thanks in advance!!



Software/Hardware used:
Crystal Reports
ASKED: November 5, 2009  5:58 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following