Tally TDL
Customer Credit Limit & Ageing TDL
See each debtor's credit limit right next to their pending amount and ageing buckets in one screen.
₹3,499
Tally TDL
Retrieve all Group individual Expenses
One-time payment · Instant download after verification
# Group Expenses in Excel (from the Tally TDL)
All expenses of every member company of **Group Company**, in Excel. Tally supplies the data through the TDL **Group Expenses.tcp**. Excel updates with **Data > Refresh All**.
| File | Purpose |
|---|---|
| **Group Expenses.xlsx** | The report: set the dates on Settings, then **Data > Refresh All** |
| **TDL\Group Expenses.tdl** | TDL source. Compile it into Group Expenses.tcp (see below) |
| ExpLib.pq | Power Query: settings, checks, and the requests for the TDL's collections (connection only) |
| ExpenseEntries.pq | Sheet Expense Entries: one row per voucher and expense ledger |
| Build-ExpensesWorkbook.ps1 | Re-creates the workbook from the .pq files |
## How it works
1. Group Expenses.tcp is loaded in Tally. It defines two collections:
- **GEX Expense Entries**: every voucher entry on an expense ledger between From Date and To Date.
- **GEX Expense Groups**: the expense groups.
2. On **Refresh All**, Excel asks Tally for these two collections over port 9000, one member company after another, and fills Expense Entries.
3. In the same Refresh All, the three PivotTables update. Pressing it once is enough.
**What counts as an expense:** every ledger whose group has revenue nature and debit nature:
- **Purchases / Branch Transfer**: the reserved Purchase Accounts group, renamed Branch Transfer here.
- **Direct Expenses**.
- **Indirect Expenses**, including each branch's own expense group under Primary, such as Moshi Branch Expense and its sub-groups (Rent, Salary & Wages, Transportation…).
Input VAT, cash, bank, sales and party ledgers are not expenses. Cancelled and optional vouchers are left out. A credit on an expense ledger (a reversal) reduces the expense.
## Sheets
| Sheet | Shows |
|---|---|
| **Expense Summary** | Expenses per branch × expense type |
| **By Ledger** | Expense type > top group > group > ledger. Use the **Branch** filter at the top for one branch |
| **Monthly** | Expense type and group per month. Has the same Branch filter |
| **Expense Entries** | Every entry: company, branch, date, voucher no/type, party, narration, ledger, group, top group, expense type, debit, credit, amount |
| **Settings** | Dates, list of companies, Tally INI path |
To leave purchases and branch transfers out of a pivot, untick Purchases / Branch Transfer in its Expense Type filter.
## Step 1: Test the plain .tdl in Tally
1. In Tally, go to **Gateway of Tally > F12 > Product & Features > F4 (TDL Configuration)**.
2. Set Load TDL on startup = **Yes** and add this path:
C:\Users\amitg\Tally backup automatic\Tally Expenses Excel\TDL\Group Expenses.tdl
3. Open **Gateway of Tally > Group Expenses** in one branch company. Press **F2** and choose a month. Check that it lists that branch's expenses, such as rent, salary and transport.
4. Open Group Expenses.xlsx. Put 1–2 companies and a short period on Settings, then click **Data > Refresh All**.
If Tally shows an error when it loads the file, send me the exact message and line number.
## Step 2: Compile to a .tcp (you do this yourself)
You need **Tally Developer 9**. It is a separate licence from Tally Solutions or your Tally partner. Use a release that matches Tally.ERP 9 Rel 6.x.
1. In TD9, go to **File > New > Project** and name it Group Expenses. Then **add file** TDL\Group Expenses.tdl.
2. In **Project Properties**:
- Set **Authorised Tally serial number** to your licence serial. You can find it in Tally under **F1 Help > About**. The .tcp will then run only on this licence.
- Leave **expiry date** empty in TD9. Tally shows TD9's expiry date to every user in **F12 > F4**.
To set an expiry date, put it in the .tdl instead, before you compile: GEXExpiryDate : "31-Mar-2027" in the Formulas section. Leave it as "" for no expiry.
That date is compiled into the .tcp, so it doesn't appear in Tally's TDL list. Only Admin sees it, in the title of the Group Expenses report ("valid until …").
After that date, Tally returns no data: the report title says Expired on …, and an Excel refresh comes back empty. The check uses the PC's date.
3. **Compile**. The output file must be named **Group Expenses.tcp**, because Excel looks for this name in tally.ini. If you use another name, write it (without .tcp) in **TDL Name** on Settings.
4. In Tally, go to **F12 > F4**. Remove the .tdl path and add the .tcp path. Then restart Tally and check that the Group Expenses menu still appears.
5. Move the .tdl source off this PC, for example to a USB drive. You need it again only to make changes: edit, compile again, replace the .tcp.
## Access: only Admin
- **In the TDL:** every collection has the condition that the Tally login is **Admin** (GEXAllowedUser). Tally returns no data to any other login, whether the request comes from Excel, the menu report or any other XML/ODBC tool. For other logins the **Group Expenses** menu item is also hidden (TDL version 1.1). A company without Tally security has no login, so it gets nothing either.
- **In Excel:** before reading any company, it asks Tally who is logged in. For anyone else, Refresh All shows **no message** and the sheets come back **empty**.
To change the user, edit GEXAllowedUser in the .tdl and compile it again. Also change AllowedUser in ExpLib.pq and rebuild the workbook.
## Safety check: is the TDL loaded?
If Excel asks Tally for a collection that Tally does not know, Tally opens a modal "Could not find description" box. Port 9000 then stays blocked until someone clicks OK in Tally (seen on 19‑Oct‑2026).
So before every refresh, Excel reads **tally.ini** (path on Settings). It checks that User TDL = Yes and that a TDL= line points to an existing Group Expenses.tcp or .tdl. If not, Excel stops with "Group Expenses.tcp is not loaded in Tally…" and asks Tally for nothing. Tested 19‑Oct‑2026: Excel gave that message, and Tally stayed responsive.
If the .tcp is listed but Tally refused to load it (for example, wrong serial number), Tally shows that error when it starts. Fix that before you refresh.
## Daily use
1. Open Tally, load the group company, and log in as **Admin**.
2. Change **From Date / To Date** on Settings.
3. Click **Data > Refresh All** once. Excel is busy until it finishes.
Don't refresh while another Tally workbook (Sales, Financials, Location Stock) is refreshing. Tally hangs when it gets requests in parallel. Allow data previews to download in the background is already switched off inside this file. Leave it off. Checked on 20‑Oct‑2026 against a fake Tally on another port (8 s per request, 2 companies): Refresh All sent the user check and then one company after another, never more than 1 connection. Only Expense Entries reads Tally.
## Tested (19‑Oct‑2026)
- **Tally requests:** the collection definitions, sent inline on MOSHI and DSM‑2, took 1.2–2.5 s per company-month and about 7 s for a full year of one company. All 12 MOSHI expense groups were picked up. Input VAT, cash and sales were not.
- **Excel:** the workbook's queries and pivots, run against those same definitions for MOSHI + DSM‑2, Jul‑2025, gave 240 rows. One Refresh All updated all three pivots to the same total, 537,578,830.82. That total matches the direct Tally figures.
- **Not yet tested:** the .tdl file loaded in Tally, and the compiled .tcp. That is Step 1 above.
- DSM‑2 books only Branch Transfer From H.O. as an expense. Its running costs are not booked in that company.
No reviews yet. Customers who buy this product can leave a review from their account.
Tally TDL
See each debtor's credit limit right next to their pending amount and ageing buckets in one screen.
₹3,499
Tally TDL
Automatic Gate pass for your Invoices , no need to write with hand
₹1,500
₹2,500
Tally TDL
With each Print of Invoice , delivery notes and other Reports
₹500
₹1,000
Tally TDL
Auto packaging for the product while raising Invoices
₹500
₹1,000