Skip to main content

Using the Add Related Records Feature in TimeXtender Classic

  • December 26, 2024
  • 0 replies
  • 3 views

Forum|alt.badge.img+1

Introduction

The Add Related Records feature is a powerful table transformation that enables you to generate records in one table using data from another table. This functionality is particularly useful when creating records in dimension tables based on fact table data.

How It Works

The transformation allows you to establish relationships between tables and automatically generate new records based on specified conditions and mappings.

Configuration Steps

1. Right click on the Dimension table, select Advanced, then Add Related Records

2. Configure the Add Related Records dialog items.

  • Provide a name for the Table Transformation.
  • Set up the necessary conditions and mappings that will be used to create the new related record.
  • Configure the "Allow Default Value" and "Default Value" options to handle empty field scenarios.

     

Note that a Condition must be set relating the two tables in the Add Related Records dialog, even if a relation already exists between the two tables in the data warehouse. 

 

Example

In this example, we have a dimension table and a fact table:

2012-05-29_14h40_03.png

 

The Fact Table contains 3 rows of data:

2012-05-29_14h46_49.png

 

The Dimension Table contains 2 rows of data:

2012-05-29_14h49_29.png

 

Select Add Related Records on the dimension table:

2012-05-29_14h50_46.png

 

Assign a name to the Table Transformation and setup the mappings and conditions needed to complete the Add Related Records dialog.

2012-05-29_14h55_09.png

The “Allow Default Value” and “Default Value” can be used to supply values for mapped fields when they are empty. 

The Table Transformation will appear on the Dimension Table as follows:

2012-05-29_15h00_22.png

 

The Dimension table with the added related record is shown below:

2012-05-29_15h01_54.png

 

The dimension record with Key = C was created from the fact table based the value of the DimKey field. The DimDescription field was also set to the DimKey field value, and the DimAttribute field was set to the text of "Auto Generated Entry" as configured by the fixed value mapping for this field. 

Did this topic help you find an answer to your question?

0 replies

Be the first to reply!

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings