I have a 2 part question. First is when we pull the trial balance from our ERP system it pulls only accounts with balances, but for various calculations that will be done outside of alteryx, I need each entity to have the same GL accounts. Below is a quick example.
TBs from ERP:
| Entity | A/C | Desc | Amt |
| 1000 | 610111 | Small F&F <$1,000 | 100 |
| 1000 | 610130 | Badging Expenses | 100 |
| 1000 | 610200 | Sm Equip $1,000-$5,0 | 100 |
| 1000 | 610201 | Small Equip <$1,000 | 100 |
| 1000 | 610250 | Security Equipment | 100 |
| 1000 | 610300 | Print/Repro/Copy Cst | 100 |
| 1000 | 610400 | Forms | 100 |
| 1000 | 610500 | Safety Supplies | 100 |
| 1000 | 610600 | Research Material | 100 |
| 1000 | 610700 | Samples | 100 |
| 1000 | T00101 | 162m Tax Account - Salaries & Wages | 100 |
| 1000 | T00102 | 162m Tax Account - Stock Option Expense (NQ) | 100 |
| 1000 | T00103 | 162m Tax Account - Other Equity Based Comp (RSU, PSU) | 100 |
| 1000 | T00104 | GILTI Inclusion | 100 |
| 1000 | T00501 | 162m Tax Account - COGS Salaries & Wages | 100 |
| 1000 | T00502 | 162m Tax Account - COGS Stock Option Expense (NQ) | 100 |
| 1000 | T00503 | 162m Tax Account - COGS Other Equity Based Comp (RSU, PSU) | 100 |
| 1000 | T00701 | 162m Tax Account - R&D Salaries & Wages | 100 |
| 1000 | T00702 | 162m Tax Account - R&D Stock Option Expense (NQ) | 100 |
| 1000 | T00703 | 162m Tax Account - R&D Other Equity Based Comp (RSU, PSU) | 100 |
| 1000 | 999500 | WIP Offset | 100 |
| 1100 | 610111 | Small F&F <$1,000 | 100 |
| 1100 | 610130 | Badging Expenses | 100 |
| 1100 | 610200 | Sm Equip $1,000-$5,0 | 100 |
| 1100 | 610201 | Small Equip <$1,000 | 100 |
| 1100 | 610250 | Security Equipment | 100 |
| 1100 | 610300 | Print/Repro/Copy Cst | 100 |
| 1100 | 610400 | Forms | 100 |
| 1100 | 610500 | Safety Supplies | 100 |
| 1100 | 610600 | Research Material | 100 |
| 1100 | 610700 | Samples | 100 |
| 1100 | T00101 | 162m Tax Account - Salaries & Wages | 100 |
| 1100 | T00102 | 162m Tax Account - Stock Option Expense (NQ) | 100 |
| 1100 | T00103 | 162m Tax Account - Other Equity Based Comp (RSU, PSU) | 100 |
| 1100 | T00104 | GILTI Inclusion | 100 |
| 1100 | T00501 | 162m Tax Account - COGS Salaries & Wages | 100 |
| 1100 | T00502 | 162m Tax Account - COGS Stock Option Expense (NQ) | 100 |
| 1100 | T00503 | 162m Tax Account - COGS Other Equity Based Comp (RSU, PSU) | 100 |
| 1100 | T00701 | 162m Tax Account - R&D Salaries & Wages | 100 |
| 1100 | T00702 | 162m Tax Account - R&D Stock Option Expense (NQ) | 100 |
| 1100 | T00703 | 162m Tax Account - R&D Other Equity Based Comp (RSU, PSU) | 100 |
Company 1100 does not have the 999500 account. I'm trying to come up with a way that to find when an entity doesn't have an account and add it with a 0.00 balance. We have about 8 entities and about 1200 GL accounts that I would need to search all and ensure each entity has the same number of rows (all GLs).
My second question is how I can easily update the treat the tax accounts (accounts beginning with "T" above) as a number for formula purposes (I'm assuming some kind of Left operator to replace the T with a zero to do whatever I need to do. What I'm not certain of is how to get the T back on without messing up any of the other GL accounts.