E10 BAQ Calculate Running Totals

What do you mean by running total? You want to add each previous line as the query runs? The below BAQ shows you how you can do it. But basically Joining the JobMtl to itself with a condition where the Sequence is <= current should do it.





Jose C Gomez
Software Engineer


T: 904.469.1524 mobile

Quis custodiet ipsos custodes?

On Wed, May 20, 2015 at 7:07 PM, obyrne.mark@... [vantage] <vantage@yahoogroups.com> wrote:

Â
<div>
  
  
  <p></p><p><span>I&#39;m attempting to create a BAQ that will have a running total for my job material required quantities for each job, however, I cannot find any code to do so.  E10 has Count and Sum functions, but I cannot use these to create a running total and was hoping someone in this group knew how.  Thanks,  Mark</span></p><p></p>

</div>
 


<div style="color:#fff;min-height:0;"></div>

I'm attempting to create a BAQ that will have a running total for my job material required quantities for each job, however, I cannot find any code to do so.  E10 has Count and Sum functions, but I cannot use these to create a running total and was hoping someone in this group knew how.  Thanks,  Mark