# GL by Project GI

**URL:** <https://community.velixo.com/t/gl-by-project-gi/38>\
**Category:** Knowledge Sharing\
**Tags:** Acumatica\
**Created:** [December 15, 2023, 1:50am UTC](https://community.velixo.com/t/gl-by-project-gi/38 "2023-12-15T01:50:12Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nathaniel\_Travis](https://community.velixo.com/letter_avatar_proxy/v4/letter/n/7ba0ec/32.png) [@Nathaniel\_Travis](https://community.velixo.com/u/Nathaniel_Travis)\
**Post date:** [December 15, 2023, 1:50am UTC](https://community.velixo.com/t/gl-by-project-gi/38/1 "2023-12-15T01:50:12Z")

</div>

First thanks for the answers to previous questions. I want to look at our revenue on the GL, and pivot it by project, but I don’t know how to achieve that with a general inquiry. Still quite new to velixo.

---

<div class="post-metadata">

**Author:** ![Gabriel](https://community.velixo.com/user_avatar/community.velixo.com/gabriel/32/7_2.png) [@Gabriel](https://community.velixo.com/u/Gabriel)\
**Post date:** [December 20, 2023, 9:14pm UTC](https://community.velixo.com/t/gl-by-project-gi/38/2 "2023-12-20T21:14:31Z")

</div>

Hi Nathaniel,

As you probably noticed, all the project inquiries, and project functions in Velixo work at the account group level; you cannot calculate the total for a project by GL account. Ideally, our recommendation is to structure your project account groups as granular as needed for your reporting needs.

That being said, it’s definitely possible to create a generic inquiry that gives you total by project/account, and then retrieve this using Velixo. I already have some inquiries that group by ledger, project, account and period, but you may need a different level of aggregation (by branch, by subaccount, etc.). Do you happen to have or would you be willing to build a simple spreadsheet that shows how you would like the data displayed? I’ll help you with the inquiry and Excel functions.

Regards,

Gabriel

---

<div class="post-metadata">

**Author:** ![Gabriel](https://community.velixo.com/user_avatar/community.velixo.com/gabriel/32/7_2.png) [@Gabriel](https://community.velixo.com/u/Gabriel)\
**Post date:** [December 20, 2023, 9:15pm UTC](https://community.velixo.com/t/gl-by-project-gi/38/3 "2023-12-20T21:15:16Z")

</div>

(and to further expand on my answer below – the reason Acumatica does not allow you to get project balances by GL account is because project transactions themselves don’t directly reference GL accounts; from Project Transactions, you can create off-balance transactions that only reference an account group, without impacting the GL)

---

<div class="post-metadata">

**Author:** ![Nathaniel\_Travis](https://community.velixo.com/letter_avatar_proxy/v4/letter/n/7ba0ec/32.png) [@Nathaniel\_Travis](https://community.velixo.com/u/Nathaniel_Travis)\
**Post date:** [December 21, 2023, 12:42pm UTC](https://community.velixo.com/t/gl-by-project-gi/38/4 "2023-12-21T12:42:03Z")

</div>

Hi Gabriel,

Thanks for the response, and that makes sense to me. Our project teams all work in the project transactions world, its when I am seeing anomalies, or other margin issues is when I want project data tied to the GL. I want to isolate where the anomalies are located to dig into a specific project. And as you noted not all project transactions flow to the GL so only using Project Transactions does not tell me the whole story. Do you have an email I could contact you at to take this off-forum?

thanks,

Nathaniel

---

<div class="post-metadata">

**Author:** ![Gabriel](https://community.velixo.com/user_avatar/community.velixo.com/gabriel/32/7_2.png) [@Gabriel](https://community.velixo.com/u/Gabriel)\
**Post date:** [December 21, 2023, 4:39pm UTC](https://community.velixo.com/t/gl-by-project-gi/38/5 "2023-12-21T16:39:18Z")

</div>

Nathaniel,

Happy to help you over e-mail, it will be easier if we need to share anything confidential with me. Just use my first name at [velixo.com](http://velixo.com). I’ll make sure to create a sample file we can share her afterwards for the benefit of our community.

Regards,

Gabriel

---

<div class="post-metadata">

**Author:** ![Carly\_Sugden](https://community.velixo.com/letter_avatar_proxy/v4/letter/c/f19dbf/32.png) [@Carly\_Sugden](https://community.velixo.com/u/Carly_Sugden)\
**Post date:** [January 2, 2024, 4:32pm UTC](https://community.velixo.com/t/gl-by-project-gi/38/6 "2024-01-02T16:32:02Z")

</div>

Hello Gabriel, sorry for jumping on this post but this is exactly what I am looking to do.

I need to create a report that lets me look at the GL turnover for a given period range and project. Not sure where to start!

We removed the project number from our sub account but there doesn’t seem to be a way to filter on project when looking at the Velixo formulas.

Thanks, Carly

---

<div class="post-metadata">

**Author:** ![Gabriel](https://community.velixo.com/user_avatar/community.velixo.com/gabriel/32/7_2.png) [@Gabriel](https://community.velixo.com/u/Gabriel)\
**Post date:** [January 2, 2024, 10:26pm UTC](https://community.velixo.com/t/gl-by-project-gi/38/7 "2024-01-02T22:26:20Z")

</div>

Hi Carly,

Happy New Year! Glad to see another user jumping in. Even before your post I already knew this would interest others. You are correct, there’s no way to filter by project in the GL functions because the historical balances for the GL module in Acumatica are not grouped by project. We can achieve this by creating a generic inquiry, however.

Would you happen to have a sample template or mockup of how you would like this to look?

@Nathaniel FYI I have not received anything from you, did you try to e-mail me?

---

<div class="post-metadata">

**Author:** ![Gabriel](https://community.velixo.com/user_avatar/community.velixo.com/gabriel/32/7_2.png) [@Gabriel](https://community.velixo.com/u/Gabriel)\
**Post date:** [January 16, 2024, 7:26pm UTC](https://community.velixo.com/t/gl-by-project-gi/38/8 "2024-01-16T19:26:25Z")

</div>

Thanks for your patience Carly and Nathaniel! I just finished building a sample for you, which you can find here: [Project Totals by Account - Velixo Sample Reports Repository](https://velixo.sharepoint.com/:f:/s/PubliclyAvailableSampleReports/Ems73k7LjD9LtdRrEIu6H54B99eaU_AH-gDCnkdWf34xXg?e=ZC2YkF). The folder includes a spreadsheet, as well as the Generic Inquiry that was used to support it.

A video presenting this can be found here: [https://www.loom.com/share/865fd98c30e14953b064a7080a6882a6](https://www.loom.com/share/865fd98c30e14953b064a7080a6882a6)

Technical Details

- The generic inquiry retrieves the total by ledger, account, project and financial period. The grouping allows us to minimize the amount of data to be retrieved when you run & refresh the report.
- If you need to be able to able to filter by subaccount, or project task, the inquiry will need to be modified accordingly.
- The inquiry results grid tab includes two formula field; one that gives us the net amount (debit minus credit) of the transaction, the other one that gives us the financial period in YYYYMM format. The reason the schema field is set to Batch.LineCntr is to ensure the field is formatted as an integer; this will allow Excel to properly filter by period range in the report

Report Implementation

- The raw data is loaded into the “Data” sheet of the workbook. There are no filters, but you could decide to only load the data of a specific project, or for a specific date range
- The “Test” sheet contains a sample comparing the amount returned by project functions with what we calculate straight from the GL. Note that revenue accounts show up as negative because we show the raw GL balance (which has a credit normal balance)

 ![](https://community.velixo.com/uploads/default/original/1X/1b8fd6cdffe90b2302e9a142692153557905f439.jpeg)

- Two different implementations of the GL calculation are provided; one using the =SUMIFS() function, another one that leverage Excel lambda functions to created a “named” version of the same function:

SUMIFS() version

=SUM(SUMIFS(Data!$D:$D,

```
Data!$A:$A,$B$1,

Data!$B:$B,">="&RIGHT($D$1,4)&LEFT($D$1,2),

Data!$B:$B,"<="&RIGHT($D$2,4)&LEFT($D$2,2),

Data!C:C,EXPANDACCOUNTRANGE("Acumatica",Test!$B5)))

```

The reason the SUMIFS() function is nested inside SUM() is because when we have multiple accounts in the range, SUMIFS() will return one row per GL account.

“Named” lambda function

You can learn more about named lambda functions [here](https://support.microsoft.com/en-au/office/lambda-function-bd212d27-1cd1-4321-a34a-ccbf254b8b67). Note that I like to use the Excel Labs add-in, they have a feature called “Advanced Formula Environment” which makes building these functions very easy.

=PROJECTTURNOVERAMOUNTBYACCOUNT(Connection, Project, AccountCode, StartPeriodInclusive)

 ![](https://community.velixo.com/uploads/default/original/1X/bd1a90dc3bdf890deb56620c46fda51a01270cca.png)

---

<div class="post-metadata">

**Author:** ![Carly\_Sugden](https://community.velixo.com/letter_avatar_proxy/v4/letter/c/f19dbf/32.png) [@Carly\_Sugden](https://community.velixo.com/u/Carly_Sugden)\
**Post date:** [January 18, 2024, 5:12pm UTC](https://community.velixo.com/t/gl-by-project-gi/38/9 "2024-01-18T17:12:08Z")

</div>

Thank you Gabriel, this is fantastic! I have got the GI working and into excel. Seems like this will cover everything needed and will read up about the lambda.

Great support - saved me days!
