---
title: "Invoices – Loads to bill resource allocation exports: what, why and how"
description: "Resource allocation exports write the Loads to bill Load view to a file, one row per resource with its own costs. Learn how to set one up, who can run it and how large exports are delivered."
url: https://help.qargo.com/us/articles/9599882-invoices-loads-to-bill-resource-allocation-exports-what-why-and-how
locale: us
updated: 2026-11-30
---

# Invoices – Loads to bill resource allocation exports: what, why and how

## Summary

**What are resource allocation exports**

- A custom export of the type _Resource allocation_, run from the _Load view_ in _Loads to bill_.
- The file has one row per row on the screen. Each row carries only the costs of its own resource, not the cost of the whole load.

**Why use resource allocation exports**

- Finance can check contract carrier costs and accruals line by line against the file.
- The _Amount to bill_ column counts costs like the _Amount_ column. The file adds up to what the screen shows with an Amount to bill column added.

**How does it work**

- A _Super admin_ creates an export of the type _Resource allocation_ once.
- Users then run it from the _Export_ menu of the _Load view_, for selected rows or for the whole list.
- Large exports arrive by email instead of as a direct download.

## Terminology

| Term | Meaning |
| --- | --- |
| Resource allocation | One resource (for example a contract carrier or a vehicle) assigned to a load. The Load view shows one row per resource allocation. |
| Resource allocation export | A custom export that writes one file row per resource allocation, with that resource's own costs. |
| Amount to bill | The resource's cost charges that are still to bill, per currency. Invoiced charges and their credits are left out. |
| Costs by currency | All the resource's cost charges per currency, including invoiced charges. Charges and credit charges are listed separately. The Total excl. tax field subtracts the credits. |
| Custom export | An export file layout that a Super admin builds and that users run from an Export menu. |

## Use cases

### Accruals and contract carrier cost checks

At month end, finance exports the loads still to bill and compares each contract carrier line with the carrier invoices. Each file row matches one row on the Load view, with only that resource's cost. Totals per resource are easy to reconcile.

## Prerequisites

- A _Super admin_ has created an export of the type _Resource allocation_.
- A Super admin adds an Amount to bill column to the export, one per currency. See _Add an Amount to bill column_ in Setup.
- The user can edit charges or has planning rights. A user with the right to edit charges also needs a role that can export records, such as the Invoice role.
- The export uses CSV or XLSX output.

## Setup: create a resource allocation export

### Create export {#h_c9bb6fc6f4}

Only a _Super admin_ can create the export. Until one exists, the _Export_ menu of the _Load view_ shows no custom export.

1. **Open** _Configuration_ > _Templates_ > _File exports/downloads_.
2. **Click** _Create export_.

   ![Templates page, File exports/downloads, with the Create export button](https://help.qargo.com/media/11f0ff6d0827-resource-allocation-export-create-export.png)

3. **Type** a name in the _Name_ field.
4. **Select** _Resource allocation_ in the _Export type_ field.
   - _Resource allocation_ - one row per resource on the Load view of Loads to bill.
   - _Intermodal planning_ - a different type for the Planning export. Do not pick it for Loads to bill.

   ![Create export form with Resource allocation in the Export type list](https://help.qargo.com/media/7f5c49459d84-resource-allocation-export-type.png)

5. **Select** the _Qargo field_, for example _Load > Name_, _Resource > Name_ or _Costs by currency_ for one currency. The _Header_ fills in by itself.
6. **Click** _Add field_ as needed. To add the amount still to bill, follow Add an Amount to bill column below.
7. **Select** CSV or XLSX as the output format.
8. **Save** the export.

:::callout{tone="note"}
📚 Add _Amount to bill_ rather than _Costs by currency_ when the file must match the Amount column. _Costs by currency_ also counts invoiced charges.
:::

### Add an Amount to bill column {#h_ce532ed820}

1. **Click** the _Qargo field_ box and **select** _Use expression builder_ at the bottom of the list.

   ![Qargo field list with Use expression builder at the bottom](https://help.qargo.com/media/df78b29babaf-resource-allocation-use-expression-builder.png)

2. **Click** _Compose custom expression_.

   ![Expression builder with the Compose custom expression button](https://help.qargo.com/media/30cba44f2553-resource-allocation-compose-custom-expression.png)

3. **Paste** this expression in the _Custom expression_ box:

   ```txt
   $exists(costs_by_currency.GBP) ? $formatNumber($sum([costs_by_currency.GBP.charges[status = "CREATED" and ($not($exists(approval_status)) or approval_status = "APPROVED")].$number(amount_excl_tax)]), "0.00") : ""
   ```

4. **Replace** both GBP in the expression with your currency code, for example EUR.
5. **Click** _Save_ in the expression builder.
6. **Type** a name in the _Header_ box, for example "Amount to bill EUR". The header stays empty for a custom expression, and you can't save the export without one.
7. **Repeat** these steps for each other currency you use.
8. **Save** the export.

## Running the export from Loads to bill

### Export menu in the Load view {#h_a096bb06b1}

The _Export_ menu lists the tenant's resource allocation exports. Each one appears under _CSV exports_ or _Excel exports_, depending on its output format.

1. **Open** _Invoices_ > _Loads to bill_ and switch to the _Load view_.

   ![Invoices, Loads to bill, with the Load view selected](https://help.qargo.com/media/43a52f711d5a-trips-to-bill-trip-view.png)

2. **Select** the filters the list needs.
3. **Click** _Export_.

   ![Load view with two rows checked and the Export button](https://help.qargo.com/media/27610f33c1c8-trips-to-bill-trip-view-export-button.png)

4. **Select** the resource allocation export.
5. **Select** which rows to export:
   - _Select rows_ - only the rows checked on the screen.
   - _All_ - every row of the list, after the filters.

   ![Export menu with the resource allocation export under CSV exports and the choice All or Select rows](https://help.qargo.com/media/a641d0ad99ef-trips-to-bill-resource-allocation-export-all-select-rows.png)

6. **Check** the result: the file downloads, or a message says the file will arrive by email.

![Example file: one row per resource, with Costs by currency and Amount to bill columns](https://help.qargo.com/media/1f8228f6ac5c-resource-allocation-export-file-example.png)

### Large exports

- Up to 500 rows download right away.
- Above 500 rows, Qargo emails the file as an attachment, up to 25,000 rows. Above 25,000 rows nothing is exported.
- With _All_, Qargo takes at most the first 10,000 loads of the list and shows a warning when the list is longer.

### What changes in the menu and counters

- Custom exports of the type Load no longer appear in this menu. They still run from the other screens that offer them.
- The built-in _Export_ under _Excel exports_ and the revenue and cost report stay. These still export whole loads.
- When you check rows, the "N selected" counter under the Load column header counts resource rows, not loads. A load with two resources counts as 2.

  ![Load view with three rows of the same load checked and the counter showing 3 selected](https://help.qargo.com/media/c78733b51971-trips-to-bill-trip-view-selected-counter.png)

## Reading the cost fields

### Amount to bill and Costs by currency

- Amount to bill counts only cost charges still to bill, the same way as the Amount column. Costs by currency holds all the resource's cost charges, including invoiced charges. Charges and Credit charges list each line, so a credit shows as a separate positive amount. For the net cost, use Total excl. tax, which already subtracts the credits.
- Costs by currency and the Amount to bill column stay empty on every row of a load when any cost charge on that load belongs to a billing entity you don't have access to. This also applies to resources whose own costs are on your billing entities. Users with access to all billing entities always see the costs.
- A cost column also stays empty for a currency in which the resource has no costs. Add one column for each currency you use.

### Empty kilometers

The export has no empty kilometers per resource. The field _Distance empty (km)_ under _Orders_ gives the empty distance of the whole order, not of one resource.

## Troubleshooting

| Issue | Likely cause | Resolution |
| --- | --- | --- |
| The Export menu of the Load view shows no custom export. | No export of the type Resource allocation exists yet. Qargo has no default one. | Ask a Super admin to create one with Create export and Export type Resource allocation. |
| A custom Load export is missing from the Load view. | Custom exports of the type Load no longer appear in this menu. | Run it from another screen that offers it, or create a Resource allocation export. |
| An Intermodal planning export does not appear in Loads to bill. | Intermodal planning is a different type, used by the Planning export. | Create a new export with Export type Resource allocation. |
| The cost fields in the file are empty. | The load has cost charges outside the billing entities the user works with. Or the column is for a currency in which the resource has no costs. | Check the load's cost charges and billing entities, or ask a user with access to all of them. Add one column for each currency the resource has costs in. |
| The file total differs from the Amount column. | The export uses Costs by currency, which includes invoiced charges. | Add an Amount to bill column, see Setup. For the net cost, use Costs by currency > Total excl. tax, which already subtracts the credits. |
| Qargo shows There is nothing to export. | No row is selected, or the filtered list is empty. | Select rows or change the filters, then export again. |
| The file did not download. | The export has more than 500 rows, so Qargo sends it by email. | Check the inbox for the export attachment. |


## Related articles

- [Invoices – Create carrier invoice from loads](https://help.qargo.com/us/articles/285482-invoices-create-carrier-invoice-from-loads.md)
- [Customer portal — Excel and CSV order export — what, why and how.](https://help.qargo.com/us/articles/764910-customer-portal-excel-and-csv-order-export-what-why-and-how.md)
- [RESOURCES - Resource costs: What, why, how.](https://help.qargo.com/us/articles/892598-resources-resource-costs-what-why-how.md)
- [How to configure custom export files](https://help.qargo.com/us/articles/202699-how-to-configure-custom-export-files.md)
- [Rates — Charge currency on rate card charges — What, why & how](https://help.qargo.com/us/articles/844512-rates-charge-currency-on-rate-card-charges-what-why-how.md)
