Scripts

The source data, as they have been imported to the InMemory database, are the raw, unmodified data. Sometimes these data need to be enriched to provide meaningful insight to the end-users.

In the ETL Studio, you can run Scripts to perform modifications to your existing tables, to create new tables etc.

mceclip0.png

In this example we will add an extra column to the Customer table. The added column should simply concatenate the content of the existing [City] and [Country_Region Code] columns.

First, rename the Script to something that describes what it will do. Next, open the Query window by clicking the button next to the Query property:

mceclip1.png

This will open the Query Editor where you can type in your script as in the example below:

mceclip2.png

Once you have applied the script, you can try to run the project:

mceclip3.png

When the project has been successfully run, you can check the result with the TARGIT InMemory Query Tool:

mceclip4.png

Such a new column can of course be defined as a new dimension or as a new measure in your Data Model, but in order to see it, you may need to close and re-open your Data Model Editor:

mceclip5.png

The newly added column is now visible in your Data Model and can be used to e.g. create a new dimension:

mceclip6.png

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.