> For the complete documentation index, see [llms.txt](https://docs.collibra.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.collibra.com/data-quality-self-hosted/core-concepts/explorer/create-a-dq-job/transform.md).

# Transform

{% hint style="warning" %}
Transform is only available in Pullup mode. If you are using Pushdown mode, proceed to the next available step.
{% endhint %}

Transform allows you to override existing columns or create new ones based on the data in existing ones by performing the following operations:

* Convert a column to a date, string, integer, double, or long data type.
* Concatenate 2 or 3 string columns.
* Replace empty spaces in specified columns with NULL.
* Perform window functions on groups of rows.
* Add custom transform expressions.

{% hint style="info" %}
Transform is disabled by default.
{% endhint %}

## Steps

{% stepper %}
{% step %}
On the stepper, click **Transform**.\ <i class="fa-chevrons-right">:chevrons-right:</i> The Transform step opens.
{% endstep %}

{% step %}
Select from the following options, as needed.

<table><thead><tr><th width="152">Option</th><th>Description</th></tr></thead><tbody><tr><td>Add Collibra DQ Date Column</td><td><p>Adds a synthetic run date column.</p><div data-gb-custom-block data-tag="hint" data-style="success" class="hint hint-success"><p>This can be helpful when your file does not contain dates that are easy to handle.</p></div></td></tr><tr><td>Flatten</td><td><p>Refers to the level of nesting in your file.</p><div data-gb-custom-block data-tag="hint" data-style="success" class="hint hint-success"><p>Data Quality &#x26; Observability (self-hosted) traverses all levels, which can result in highly nested data being expanded into many rows per nested object. This can significantly impact processing performance, so use this feature with caution.</p></div></td></tr><tr><td>Multi-line</td><td><p>Refers to the content of the file being more than one line.</p><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>There are limitations in Explorer for <a href="/data-quality-self-hosted/connections/supported-connections/supported-remote-files.md">remote file systems</a>, file uploads, and temporary files. The user interface doesn't support multi-line input for these file types, but you can manually supply them using using the command line.</p></div></td></tr><tr><td>Zero Fill Null</td><td>Replaces NULL values with 0.</td></tr><tr><td>Replace all field values of [value] with NULL</td><td>Replaces all values of the column you specify with NULL.</td></tr></tbody></table>
{% endstep %}

{% step %}
To the right of the Transform screen, click **+ Add**.\ <i class="fa-chevrons-right">:chevrons-right:</i> The Add a Transform modal appears.
{% endstep %}

{% step %}
Select one of the following options and follow the steps accordingly.

{% tabs %}
{% tab title="Override a Column" %}
{% stepper %}
{% step %}
Click the **Override a Column** option.
{% endstep %}

{% step %}
Click the **Operation** dropdown menu and select an option.

<table><thead><tr><th width="152">Operation</th><th>Description</th></tr></thead><tbody><tr><td>to Date</td><td>Converts a string column to a date type column.</td></tr><tr><td>to String</td><td>Converts a column to a string type column.</td></tr><tr><td>to Int</td><td>Converts a column to an integer type column.</td></tr><tr><td>to Double</td><td>Converts a column to a double type column.</td></tr><tr><td>to Long</td><td>Converts a column to a long type column.</td></tr><tr><td>Concat(X, Y)</td><td>Concatenates two string type columns, where "X" represents the first column and "Y" the second. Select the columns from the Column dropdown menus to the right of the Operation dropdown menu.</td></tr><tr><td>Concat(X, Y, Z)</td><td><p>Concatenates three string type columns where "X" represents the first column, "Y" the second, and "Z" the third.</p><p>Select the columns from the Column dropdown menus to the right of the Operation dropdown menu.</p></td></tr><tr><td>Replace</td><td>Replaces empty spaces in a specified column with NULL.</td></tr><tr><td>Window Functions</td><td><p>Performs window functions on groups of rows.</p><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>This option requires additional selections outlined in the following steps.</p></div><ol><li>Select an option from the <strong>Function</strong> dropdown menu.</li><li>Select a column from the <strong>Column</strong> dropdown menu.</li><li>Optionally select the <strong>Group by</strong> checkbox, then select the column(s) to group the window function.</li><li>Optionally select the <strong>Order by</strong> checkbox, then select the column(s) in the order you want them to appear.</li></ol></td></tr><tr><td>Custom</td><td>Adds custom transform expressions. Manually update the Expression input field after selecting a column from the Column dropdown.</td></tr></tbody></table>
{% endstep %}

{% step %}
Click the **Column** dropdown and select an option.

{% hint style="success" %}
If you already selected the columns after choosing Window Functions or one of the Concat options, you can skip this step.
{% endhint %}
{% endstep %}

{% step %}
Review or manually edit the **Expression** input field, as needed.
{% endstep %}
{% endstepper %}
{% endtab %}

{% tab title="Create a new Column" %}
{% stepper %}
{% step %}
Click the **Create a new Column** option.
{% endstep %}

{% step %}
Enter a column name for your new column in the input field to the right of the Create a new Column option.
{% endstep %}

{% step %}
Click the **Operation** dropdown menu and select an option.

<table><thead><tr><th width="152">Operation</th><th>Description</th></tr></thead><tbody><tr><td>to Date</td><td>Converts a string column to a date type column.</td></tr><tr><td>to String</td><td>Converts a column to a string type column.</td></tr><tr><td>to Int</td><td>Converts a column to an integer type column.</td></tr><tr><td>to Double</td><td>Converts a column to a double type column.</td></tr><tr><td>to Long</td><td>Converts a column to a long type column.</td></tr><tr><td>Concat(X, Y)</td><td>Concatenates two string type columns, where "X" represents the first column and "Y" the second. Select the columns from the Column dropdown menus to the right of the Operation dropdown menu.</td></tr><tr><td>Concat(X, Y, Z)</td><td><p>Concatenates three string type columns where "X" represents the first column, "Y" the second, and "Z" the third.</p><p>Select the columns from the Column dropdown menus to the right of the Operation dropdown menu.</p></td></tr><tr><td>Replace</td><td>Replaces empty spaces in a specified column with NULL.</td></tr><tr><td>Window Functions</td><td><p>Performs window functions on groups of rows.</p><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>This option requires additional selections outlined in the following steps.</p></div><ol><li>Select an option from the <strong>Function</strong> dropdown menu.</li><li>Select a column from the <strong>Column</strong> dropdown menu.</li><li>Optionally select the <strong>Group by</strong> checkbox, then select the column(s) to group the window function.</li><li>Optionally select the <strong>Order by</strong> checkbox, then select the column(s) in the order you want them to appear.</li></ol></td></tr><tr><td>Custom</td><td>Adds custom transform expressions. Manually update the Expression input field after selecting a column from the Column dropdown.</td></tr></tbody></table>
{% endstep %}

{% step %}
Click the **Column** dropdown and select an option.

{% hint style="success" %}
If you already selected the columns after choosing Window Functions or one of the Concat options, you can skip this step.
{% endhint %}
{% endstep %}

{% step %}
Review or manually edit the **Expression** input field, as needed.
{% endstep %}
{% endstepper %}
{% endtab %}
{% endtabs %}
{% endstep %}

{% step %}
Click **Save**.
{% endstep %}

{% step %}
Optionally repeat steps 3-5 to add additional transforms.
{% endstep %}

{% step %}
Continue to the next step on the stepper or click the right arrow on the right side of the page.
{% endstep %}
{% endstepper %}
