Hi,
i am doing a report where I have to get a count of all the cases of a sales rep by coverage.
For example:
Sales Rep: Joe Broker
Case 1
LF.............True
MD ............False
RX..............True
Case 2
LF.........True
MD.......True
RX........False
Case 3
LF.........False
MD........True
RX........False
Each case has multiple coverages(eg: LF, MD, RX) which may be True or False. I have to count:
-- the number of cases for which LF is true,
--the number of cases for which MD is True etc for this sales rep.
For the example above, LF is true for 2 cases, MD for 2 cases and RX for 1 case. The Coverage fields (i.e. LF, MD, RX are boolean fields in the database).
I have to do running totals or a manual count for these because I have eliminated certain records which are not being displayed by the report.
I am trying this formula.
whileprintingrecords;
numbervar counter;
if LF = False then
counter = counter + 1
else
counter
The problem is since I am using "False" it asks me to use a boolean after "then" also and does not recognize my formula. When I run my report I simply see a False for the value generated by my formula in the report.
please help!
thanks
i am doing a report where I have to get a count of all the cases of a sales rep by coverage.
For example:
Sales Rep: Joe Broker
Case 1
LF.............True
MD ............False
RX..............True
Case 2
LF.........True
MD.......True
RX........False
Case 3
LF.........False
MD........True
RX........False
Each case has multiple coverages(eg: LF, MD, RX) which may be True or False. I have to count:
-- the number of cases for which LF is true,
--the number of cases for which MD is True etc for this sales rep.
For the example above, LF is true for 2 cases, MD for 2 cases and RX for 1 case. The Coverage fields (i.e. LF, MD, RX are boolean fields in the database).
I have to do running totals or a manual count for these because I have eliminated certain records which are not being displayed by the report.
I am trying this formula.
whileprintingrecords;
numbervar counter;
if LF = False then
counter = counter + 1
else
counter
The problem is since I am using "False" it asks me to use a boolean after "then" also and does not recognize my formula. When I run my report I simply see a False for the value generated by my formula in the report.
please help!
thanks