---
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

[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/)
[DataMigrate Pro Working with Configuration Data Six ways to move configurations between Business Central, the local installation and a ZIP archive – with the matching commands 23. October 2025 · 2 minutes](https://ioi.gmbh/en/2025/10/23/working-with-configuration-data/)
[DataMigrate Pro Step-by-Step Guide for the Migration to Business Central From the AppSource install to the first migration run – the complete DataMigrate Pro sequence 9. October 2025 · 3 minutes](https://ioi.gmbh/en/2025/10/09/step-by-step-guide-migration-to-business-central/)

## 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
