Hi all, I posted previously on inserting averages into my report, and Lbass was kind enough to work with me through a solution to it. Building on that work, I now need to insert averages by my "Branch" group rather than by my Loan officer group. Please take a look at my website, which I have taken down and thrown on there two screenshots detailing my current report and the problem. (
In the first S/S is my report in design mode, where I have circled the averages that I need to change. I no longer need individual averages, but something that will keep a running total through the different loans and loan officers, perform the math and compute the average not by loan officer but by branch group.
To get my averages before I used the following code and split it up into the appropriate groups.
whileprintingrecords;
numbervar sumcnt := sumcnt + {#RTotal0};
numbervar cnt := cnt + 1;
---------------------------------------------
whileprintingrecords;
numbervar sumcnt;
numbervar cnt;
if cnt > 0 then sumcnt/cnt
---------------------------------------------
whileprintingrecords;
numbervar sumcnt;
numbervar cnt;
if not inrepeatedgroupheader then (sumcnt := 0; cnt := 0);
What can I modify above to get me the desired result?
In the first S/S is my report in design mode, where I have circled the averages that I need to change. I no longer need individual averages, but something that will keep a running total through the different loans and loan officers, perform the math and compute the average not by loan officer but by branch group.
To get my averages before I used the following code and split it up into the appropriate groups.
whileprintingrecords;
numbervar sumcnt := sumcnt + {#RTotal0};
numbervar cnt := cnt + 1;
---------------------------------------------
whileprintingrecords;
numbervar sumcnt;
numbervar cnt;
if cnt > 0 then sumcnt/cnt
---------------------------------------------
whileprintingrecords;
numbervar sumcnt;
numbervar cnt;
if not inrepeatedgroupheader then (sumcnt := 0; cnt := 0);
What can I modify above to get me the desired result?