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

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 the percentage field is an 'insert summary' field in Group Footer No.1.  It is a DistinctCount summary of total number of PO's in my report ordered from a particular vendor.  The 2nd field allows us to see how many of those PO's, per vendor, had backordered items on them. That 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/vendor footer, that finds the percentage amount of 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 8436

Trending Articles



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