Hi,
the following formula is not returning the expexted result.
I'm using Crystal Reports 9 with MySql as the database.
***********************************************************
whileprintingrecords;
numbervar intMonths:=0;
if Sum ({@Period01}, {SLA_Summary.Metrics}) <> 0 then
intMonths := intMonths + 1;
if Sum ({@Period02}, {SLA_Summary.Metrics}) <> 0 then
intMonths := intMonths + 1;
if Sum ({@Period03}, {SLA_Summary.Metrics}) <> 0 then
intMonths := intMonths + 1;
if Sum ({@Period04}, {SLA_Summary.Metrics}) <> 0 then
intMonths := intMonths + 1;
if Sum ({@Period05}, {SLA_Summary.Metrics}) <> 0 then
intMonths := intMonths + 1;
**********************************************************
In the report i've got a 12 month array containing a summarized Running Total per metric per month. For months we haven't got any for yet it displayes a blank field (null value) as well as where the the summary is a real zero (0).
The formula above simply needs to calculate the number of months with valid values, including the zero values which are shown as a blank field.
What am i doing wrong or simply miss?
Oh yes, how do i get the summary running total fields to display the "0" when it really is a zero and not a Null. The normal Crystal reports options to convert other null values to default shows all the blank fields with a "0.00"
Any help will be appreciated.
Thanx
JPS
the following formula is not returning the expexted result.
I'm using Crystal Reports 9 with MySql as the database.
***********************************************************
whileprintingrecords;
numbervar intMonths:=0;
if Sum ({@Period01}, {SLA_Summary.Metrics}) <> 0 then
intMonths := intMonths + 1;
if Sum ({@Period02}, {SLA_Summary.Metrics}) <> 0 then
intMonths := intMonths + 1;
if Sum ({@Period03}, {SLA_Summary.Metrics}) <> 0 then
intMonths := intMonths + 1;
if Sum ({@Period04}, {SLA_Summary.Metrics}) <> 0 then
intMonths := intMonths + 1;
if Sum ({@Period05}, {SLA_Summary.Metrics}) <> 0 then
intMonths := intMonths + 1;
**********************************************************
In the report i've got a 12 month array containing a summarized Running Total per metric per month. For months we haven't got any for yet it displayes a blank field (null value) as well as where the the summary is a real zero (0).
The formula above simply needs to calculate the number of months with valid values, including the zero values which are shown as a blank field.
What am i doing wrong or simply miss?
Oh yes, how do i get the summary running total fields to display the "0" when it really is a zero and not a Null. The normal Crystal reports options to convert other null values to default shows all the blank fields with a "0.00"
Any help will be appreciated.
Thanx
JPS