Crystal XI
SQL 2005
I am displaying the results of survey responses in the Detail Section of the Report and then summarizing those results using a Cross-tab in the Report Footer.
The survey responses that are being summarized are a mix of Scaled Scores (1-5) and Yes/No responses. Based upon the selection criteria there may be 50-60 DIFFERENT Scaled Score Questions and 30-40 DIFFERENT Yes/No questions that need to be Summarized separately.
Question #1 I am using the below formula to calculate the summarized Scaled Score. The problem is that when it comes to Calculating the Average in the Cross-tab, the Null Values are being included in the calculation.
For example, if the values in detail section were:
5
Null
Null
Null
The Average would calculate as 1.25 instead of 5.
Is there a way to write the formula to set the result to Null when appropriate so that it is not included in the calculation?
SQL 2005
I am displaying the results of survey responses in the Detail Section of the Report and then summarizing those results using a Cross-tab in the Report Footer.
The survey responses that are being summarized are a mix of Scaled Scores (1-5) and Yes/No responses. Based upon the selection criteria there may be 50-60 DIFFERENT Scaled Score Questions and 30-40 DIFFERENT Yes/No questions that need to be Summarized separately.
Question #1 I am using the below formula to calculate the summarized Scaled Score. The problem is that when it comes to Calculating the Average in the Cross-tab, the Null Values are being included in the calculation.
For example, if the values in detail section were:
5
Null
Null
Null
The Average would calculate as 1.25 instead of 5.
Is there a way to write the formula to set the result to Null when appropriate so that it is not included in the calculation?
Code:
if {form_0164_customer_satisfaction_survey_section_detail.chk_excellent}='Y'then 5
else if {form_0164_customer_satisfaction_survey_section_detail.chk_good}='Y' then 4
else if {form_0164_customer_satisfaction_survey_section_detail.chk_satisfactory}='Y'then 3
else if {form_0164_customer_satisfaction_survey_section_detail.chk_poor}='Y'then 2
else if {form_0164_customer_satisfaction_survey_section_detail.chk_unsatisfactory}='Y'then 1