---
title: "Joining Fields from Other Tables Dynamically (Derived Columns)"
id: "997946"
type: "post"
slug: "dynamically-join-fields-from-other-tables-derived-columns"
published_at: "2025-09-12T12:43:50+00:00"
modified_at: "2026-09-02T06:07:05+00:00"
url: "https://ioi.gmbh/en/2025/09/12/dynamically-join-fields-from-other-tables-derived-columns/"
markdown_url: "https://ioi.gmbh/en/2025/09/12/dynamically-join-fields-from-other-tables-derived-columns.md"
excerpt: "The Business Central tables Cust. Ledger Entry and Vendor Ledger Entry contain the fields Customer Name and Vendor Name. Since these do not exist in NAV, they have to be derived from the respective master records during the migration. This..."
taxonomy_category:
  - "DataMigrate Pro"
  - "Support &amp; Documentation"
---

Contents

- [Customization for the ledger entry table](#customization-for-the-ledger-entry-table)

The **Customer Ledger Entries** and **Vendor Ledger Entries** tables in Business Central contain the fields **Customer Name** and **Vendor Name**. Since these do not exist in NAV, they have to be derived from the respective master records during the migration. This requires an adjustment to the configuration.

The following figure shows an example of the required configuration change:

### Customization for the ledger entry table

- Joined Table: indicates which additional table is included in the data transfer.
- Join Clause: links the table defined in the "Joined Table" column with the corresponding main table.
- Calculation: defines the expression that is passed to Business Central.
- Source Field No. -8 and Source Field Name --- calculated field --- do not exist in the source. They therefore serve documentation purposes only. The actual value determination is defined by the 3 fields Joined Table, Join Clause and Calculation.

This adjustment ensures that the missing names are taken correctly from the master data.

For those interested in the technical side, here is the generated SQL command:

```
;WITH T AS 
(
    SELECT ROW_NUMBER() OVER(ORDER BY T.[Entry No_]) [RowNumber]
	     , T18.[Name][Customer Name]
		 , T.[Entry No_]
		 , T.[Customer No_]
		 , ...
      FROM [Demo Database NAV (6-0)].dbo.[CRONUS AG$Cust_ Ledger Entry] T WITH (NOLOCK)
	     , [Demo Database NAV (6-0)].dbo.[CRONUS AG$Customer] T18 WITH (NOLOCK) 
     WHERE T.[Customer No_]=T18.[No_]
)
SELECT T.* FROM T WHERE T.[RowNumber] BETWEEN 1 AND 10000000
```

About the author

#### Sascha Marquardt

Responsible for the partner programme, the licensing business and commercial project delivery.

Keep reading## More from the IOI blog

[Artificial Intelligence (AI) DataMigrate Pro with AI agents: the MCP server An AI agent may look things up, compare and suggest. It may change or migrate only if you switch that on and… 2. November 2026 · 3 minutes](https://ioi.gmbh/en/2026/11/02/datamigrate-pro-with-ai-agents-mcp-server/)
[DataMigrate Pro What’s new in DataMigrate Pro? Data reconciliation between NAV and Business Central, GDPdU export, evidence for audits and a first look at AI agents. 2. November 2026 · 5 minutes](https://ioi.gmbh/en/2026/11/02/whats-new-in-datamigrate-pro/)
[DataMigrate Pro DataMigrate PRO Synch-Service Setting up and running the service bus listener as a Windows service – from the prerequisites to settings.json 24. October 2025 · 4 minutes](https://ioi.gmbh/en/2025/10/24/datamigrate-pro-synch-service/)

## From reading to action. Book your upgrade check.

In the free upgrade check we analyse your current Navision or NAV version and show you the direct path to Business Central – including effort, sequence and a fixed-price range.

[Book a free Upgrade-Check →](/en/business-central-upgrade-check/)
[Give us a quick call: +49 214 8402 3000](tel:+4921484023000)

✓ Directly from any Navision or NAV version

✓ Live test while the legacy system keeps running

✓ C/AL→AL conversion included

✓ Fixed-price range and timeline afterwards
