Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9091

Re: Effective Formula for Percentage Field from 2 DistinctCount Fields?

$
0
0

Abhilash,

The first field within the 2 from which I hope to derive a percentage is an 'insert summary' field in Group Footer No.1.  It is a DistinctCount summary of all PO Numbers in my report.  It gives me the sum of all orders placed within my chosen dates on this particular report.  The 2nd field is derived from the following formula:

 

1.  Group Header No. 1:

     WhilePrintingRecords;

          numbervar cnt:=0

2.  Group Header No. 2

     WhilePrintingRecords;

          numbervar cnt=

               numbervar cnt2=

          if (BO?) =1 then (cnt := cnt+1; cnt2; = cnt2 +1);

3.  In Group Footer No.1:

     WhilePrintingRecords;

          numbervar cnt;

      

 

I'd like to have a percentage field within each group footer, finding 100 - 1st field/2nd field.

 

Ultimately, would like to add a report total for both fields in the report footer, as well.  The first field formula is the same in the current report footer, while the 2nd field formula is as follows:

 

1. Report Footer:

     WhilePrintingRecords;

          numberbar cnt2;

 

Thank you, Abhilash!  Have a good day.

Eric


Viewing all articles
Browse latest Browse all 9091

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>