Hello!
I am trying to calculate Total Revenue and COGS in a Generic Inquiry. The goal is to match the values by financial period to the values on the P&L in financial reports.
I looked at the source data for the P&L and saw that it’s summing the balance between 5000 and 5070 for COGS.

My formula in the GI is: =IIf([Account.AccountCD] >= '5000' AND [Account.AccountCD] <= '5070', [GLHistory.CuryFinYtdBalance], 0). I am summing this field and grouping by financial period.
I wasn’t getting the same Ending Balance Total (COGS) on my GI and P&L and found that it’s because my GI is missing two accounts: 5037 and 5060.
Can anyone help me understand why the generic inquiry is not pulling all of the accounts between 5000 and 5070? I don’t have any conditions set that is preventing them from showing. Is it something in my formula? This issue happens to other financial periods too.


I was able to use the below post to get started on the GI but ran into the issue described above.
How to pull the take from profit and loss report EBIDTA into Dashboard | Community
Thanks!



