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

Re: Sum a field based on unique value not in sequence

$
0
0

Hi Matthew,

 

Try this please:

 

1) Create a formula with this code and place this on the Details:

 

shared stringvar barcode;

shared numbervar grand;

if Instr(barcode, {Barcode_field}) = 0 then

(

     barcode := barcode + {Barcode_field} + ',';

     grand := grand + {field_to_sum};

);

 

2) Create a display formula and place this on the Report Footer to display the Grand Total:

 

shared numbervar grand;


-Abhilash


Viewing all articles
Browse latest Browse all 3354

Trending Articles



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