# BAQ calculated fields disapear

**URL:** <https://www.epiusers.help/t/baq-calculated-fields-disapear/42156>\
**Category:** Epicor ERP 10\
**Created:** [January 10, 2018, 6:55pm UTC](https://www.epiusers.help/t/baq-calculated-fields-disapear/42156 "2018-01-10T18:55:14Z")\
**Posts on this page:** 4\
**Page:** 1

<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:** [January 10, 2018, 6:55pm UTC](https://www.epiusers.help/t/baq-calculated-fields-disapear/42156/1 "2018-01-10T18:55:14Z")

</div>

So I copied out a query because I want to use one of the subqueries. If I take the old top level and make it an in inner sub, and make the old sub a top level, I can run the query just fine. Since it’s a copy I would like to clean up the unneeded old top level. However when I do, there are calculated fields in the sub then magically get deleted. They areen’t dependent on anything in the old top level, why does it do that? I’ve also had this happen in other queries where there are calculated fields that just disappear and I have to recreate them to get my query to work right.

Is this common? Is there something that I am doing wrong?

---

<div class="post-metadata">

**Author:** ![hymal7](https://www.epiusers.help/user_avatar/www.epiusers.help/hymal7/32/9934_2.png) [@hymal7](https://www.epiusers.help/u/hymal7)\
**Post date:** [November 1, 2018, 11:54am UTC](https://www.epiusers.help/t/baq-calculated-fields-disapear/42156/2 "2018-11-01T11:54:27Z")

</div>

Hi @Banderson, I am having the same issue. Have you resolved this?

---

<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:** [November 1, 2018, 12:33pm UTC](https://www.epiusers.help/t/baq-calculated-fields-disapear/42156/3 "2018-11-01T12:33:30Z")

</div>

I did not. Just deal with it by rebuilding usually. As I’ve gotten better with BAQ’s I am tweaking things less and getting them right the first time, so I have less problems with it. But it’s still a problem sometimes.

---

<div class="post-metadata">

**Author:** ![hymal7](https://www.epiusers.help/user_avatar/www.epiusers.help/hymal7/32/9934_2.png) [@hymal7](https://www.epiusers.help/u/hymal7)\
**Post date:** [November 1, 2018, 12:58pm UTC](https://www.epiusers.help/t/baq-calculated-fields-disapear/42156/4 "2018-11-01T12:58:22Z")

</div>

> **[BAQ - Top SubQuery's Calculated Field disappears when deleting an Inner Subquery](https://www.epiusers.help/t/baq-top-subquerys-calculated-field-disappears-when-deleting-an-inner-subquery/49311/6)**
>
> Just fixed it. I converted the unwanted InnerSubQuery into TopSubquery, and converted the original TopSubquery into InnerSubQuery. I then deleted the unwanted SubQuery. Then restored the original TopSubquery as TopSubquery .
