Hello all,
I have created five separate reports, but I am trying to enhance my reporting skills by moving from selection experts to formula variables. With variables, I can show all of the data in one report.
I have a table with the following fields complaint, compliment, operator, date_recd and code. These fields are strings with the exception of the date_recd field which I converted to a date field. I would like to count all of the “Complaints” the field is populated with an “X”
I have declared and placed this in the Group Header
//Reset
WhilePrintingRecords;
Global Numbervar CompCount:= 0;
Global Numbervar CompCount:= CompCount + 1;
Placed this in the Group Footer
WhilePrintingRecords;
Global Numbervar CompTotal;
Global Numbervar CompTotalGT;
If {BCT_CUST.COMPLAINT}= "X" Then
(CompTotal:= CompTotalGT + 1);
I know I need to convert the string to a number for counting purposes, but I need help.
Thanks
I have created five separate reports, but I am trying to enhance my reporting skills by moving from selection experts to formula variables. With variables, I can show all of the data in one report.
I have a table with the following fields complaint, compliment, operator, date_recd and code. These fields are strings with the exception of the date_recd field which I converted to a date field. I would like to count all of the “Complaints” the field is populated with an “X”
I have declared and placed this in the Group Header
//Reset
WhilePrintingRecords;
Global Numbervar CompCount:= 0;
Global Numbervar CompCount:= CompCount + 1;
Placed this in the Group Footer
WhilePrintingRecords;
Global Numbervar CompTotal;
Global Numbervar CompTotalGT;
If {BCT_CUST.COMPLAINT}= "X" Then
(CompTotal:= CompTotalGT + 1);
I know I need to convert the string to a number for counting purposes, but I need help.
Thanks