# Running Total BAQ

**URL:** <https://www.epiusers.help/t/running-total-baq/52265>\
**Category:** Epicor ERP 10\
**Tags:** baq\
**Created:** [February 6, 2019, 12:09am UTC](https://www.epiusers.help/t/running-total-baq/52265 "2019-02-06T00:09:46Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Banderson](https://www.epiusers.help/user_avatar/www.epiusers.help/banderson/32/50875_2.png) [@Banderson](https://www.epiusers.help/u/Banderson)\
**Post date:** [February 6, 2019, 12:15am UTC](https://www.epiusers.help/t/running-total-baq/52265/2 "2019-02-06T00:15:31Z")

</div>

Here’s one example.

> **[Perform a calculation on BAQ Summary Fields](https://www.epiusers.help/t/perform-a-calculation-on-baq-summary-fields/46937/12)**
>
> I think you might be able to do this with a window function query. You can see an example with the system BAQ named: zGSTR1-B2B\_InvcDtl\_IN . If you change the ICE.QueryHdr.CGCode to an empty string you can load the BAQ in the designer and see how...

They are called windowing functions.  
You can do a sum over partition with an order by and it will give you a running total. No need for a sub query or group by. There are More examples here of you keep searching.

---

_[View the full topic](https://www.epiusers.help/t/running-total-baq/52265)._
