|
-
Apr 23rd, 2009, 01:29 PM
#1
Thread Starter
Junior Member
Crystal Reports v10 - Formula adding several fields, any of which may be null
I am not sure how to add these fields together in a formula and always return a value, be it 0 or >0. They are currency fields and the majority of the eight fields will be null. Those that are not null in the formula are still returning a null value overall, after stopping with the first null evaluation. How can I write this?
I've tried trimming the field and <>"", but nothing works. Thanks for any help!
Last edited by huddy33; Apr 23rd, 2009 at 01:41 PM.
-
Apr 23rd, 2009, 01:47 PM
#2
Re: Crystal Reports v10 - Formula adding several fields, any of which may be null
It could help if you checkMenu/File/Options/Reporting/Convert Null Field Value to Default
so it will be not neccesary to check if they are Null
Last edited by jggtz; Apr 23rd, 2009 at 02:20 PM.
-
Apr 23rd, 2009, 02:07 PM
#3
Lively Member
Re: Crystal Reports v10 - Formula adding several fields, any of which may be null
In SQL I use the isNull function in the query when the records are retrieved
-
Apr 23rd, 2009, 02:29 PM
#4
Thread Starter
Junior Member
Re: Crystal Reports v10 - Formula adding several fields, any of which may be null
 Originally Posted by KTech
In SQL I use the isNull function in the query when the records are retrieved
I'm not sure what you mean; this is the formula I'm trying to modify to skip the nulls and continue to add even if one of the fields is null
{Employees.GroupDisabilityRate}
+{Employees.MedicalDependentRate}
+{Employees.DentalEmployeeRate}
+{Employees.DentalDependentRate}
+{Employees.GroupADDCoverageRate}
+{Employees.GroupLifeCoverageRate}
+{Employees.GroupLifeCoverageDependantRate}
+{Employees.VisionElectiveRate}
+{Employees.SupplementLifeElectiveRate}
+{Employees.SupplementADDElectiveRate}
+{Employees.AFLACElectiveRate}
Last edited by huddy33; Apr 23rd, 2009 at 02:42 PM.
-
Apr 23rd, 2009, 05:12 PM
#5
Re: Crystal Reports v10 - Formula adding several fields, any of which may be null
-
Apr 23rd, 2009, 06:01 PM
#6
Thread Starter
Junior Member
Re: Crystal Reports v10 - Formula adding several fields, any of which may be null
 Originally Posted by jggtz
See post #2
That did not work. Thank you though.
-
Apr 23rd, 2009, 08:25 PM
#7
Hyperactive Member
Re: Crystal Reports v10 - Formula adding several fields, any of which may be null
That setting in Post #2 is for all NEW reports. Your's is not new anymore. Go to File, Report Options and set the setting there for the current report.
-
Apr 24th, 2009, 10:42 AM
#8
Thread Starter
Junior Member
Re: Crystal Reports v10 - Formula adding several fields, any of which may be null
 Originally Posted by rasinc
That setting in Post #2 is for all NEW reports. Your's is not new anymore. Go to File, Report Options and set the setting there for the current report.
This worked! Thank you so much!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|