# how to add a column in data wizard

**URL:** <https://forum.certara.com/t/how-to-add-a-column-in-data-wizard/3436>\
**Category:** Phoenix WNL basics\
**Created:** [September 4, 2019, 2:52pm UTC](https://forum.certara.com/t/how-to-add-a-column-in-data-wizard/3436 "2019-09-04T14:52:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![shannen](https://avatars.discourse-cdn.com/v4/letter/s/f17d59/32.png) [@shannen](https://forum.certara.com/u/shannen)\
**Post date:** [September 4, 2019, 2:52pm UTC](https://forum.certara.com/t/how-to-add-a-column-in-data-wizard/3436/1 "2019-09-04T14:52:45Z")

</div>

How to add a new column using transformation in data wizard?

---

<div class="post-metadata">

**Author:** ![ana.henry](https://sea1.discourse-cdn.com/certara/user_avatar/forum.certara.com/ana.henry/32/2578_2.png) [@ana.henry](https://forum.certara.com/u/ana.henry)\
**Post date:** [September 4, 2019, 3:04pm UTC](https://forum.certara.com/t/how-to-add-a-column-in-data-wizard/3436/2 "2019-09-04T15:04:33Z")

</div>

> [@shannen](#):
>
> How to add a new column using transformation in data wizard?

Hello,

Within the Data Wizard you can add a **Transformation** then select **Transformation type\>Custom** you will see that you need to enter a **New Column Name.** In the formula, you can indicate what that column should be or leave blank for a blank column.

Hope this helps,

Ana

---

<div class="post-metadata">

**Author:** ![SimonDavis](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@SimonDavis](https://forum.certara.com/u/SimonDavis)\
**Post date:** [September 4, 2019, 3:06pm UTC](https://forum.certara.com/t/how-to-add-a-column-in-data-wizard/3436/3 "2019-09-04T15:06:11Z")

</div>

Hi Shannen, First you would choose action of transformation in the drop down.

And then click Add

you then need to fill out the fields marked with red asterisks,

in the example below time\_hours is the new column created

Have a go with that and if you get stuck please reply with your project.

also try the new online help to find some workd examples,

[https://onlinehelp.certara.com/phoenix/8.2/index.html#t=topics%2Fdatawizardexample.htm](https://onlinehelp.certara.com/phoenix/8.2/index.html#t=topics%2Fdatawizardexample.htm)

there are many more on the forum too, e.g.

[https://support.certara.com/forums/topic/1246-accumulation-factor-and-auc0-24-calculation/?hl=wizard#entry5421](https://support.certara.com/forums/topic/1246-accumulation-factor-and-auc0-24-calculation/?hl=wizard#entry5421)

Simon.

 ![choose_action_transforrmation.jpg](https://us1.discourse-cdn.com/certara/original/1X/6f718e332199d72b7978a1942b305e771128b1e6.jpeg) ![time_hours.jpg](https://us1.discourse-cdn.com/certara/original/2X/7/76300afbf3c66c35d4abae7d9d700fd3eb067d71.jpeg)

---

<div class="post-metadata">

**Author:** ![shannen](https://avatars.discourse-cdn.com/v4/letter/s/f17d59/32.png) [@shannen](https://forum.certara.com/u/shannen)\
**Post date:** [September 5, 2019, 12:29am UTC](https://forum.certara.com/t/how-to-add-a-column-in-data-wizard/3436/4 "2019-09-05T00:29:11Z")

</div>

> [@ana.henry](#):
>

> [@sdavis](#):
>

Thanks so much for helping, but the transformation function seems like only transform an existing column to a new column, but can not add a new column, right?

---

<div class="post-metadata">

**Author:** ![SimonDavis](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@SimonDavis](https://forum.certara.com/u/SimonDavis)\
**Post date:** [September 5, 2019, 4:53am UTC](https://forum.certara.com/t/how-to-add-a-column-in-data-wizard/3436/5 "2019-09-05T04:53:57Z")

</div>

Shannen, it’s still unclear to me what it is you want to do, what is it you want to do with this new column? did you read the help file I pointed you to? that showed a transformation from a baseline.

I attach an example in v8.1, (althoguh v8.2 was released in July so I recommend being on the latest version if possible), where no reference is made to a prior column and creates 2 new columns - is that what you are asking?

The attached project shows another option, the custom transformation, which will allow you to create an empty column, one containing any text or indeed anything you can write a formula for, (see function list to the right).

Simon.

 ![2new_columns.jpg](https://us1.discourse-cdn.com/certara/original/2X/d/dec635e1f22c7acc4c145fd8092609a7b7b34404.jpeg)[shannen\_newColumn.phxproj](https://forum.certara.com/uploads/short-url/68jqeAyKIwDTTOLW7kShlPzM0Gi.phxproj) (120 KB)

---

<div class="post-metadata">

**Author:** ![shannen](https://avatars.discourse-cdn.com/v4/letter/s/f17d59/32.png) [@shannen](https://forum.certara.com/u/shannen)\
**Post date:** [September 5, 2019, 12:59pm UTC](https://forum.certara.com/t/how-to-add-a-column-in-data-wizard/3436/6 "2019-09-05T12:59:44Z")

</div>

> [@sdavis](#):
>
> Shannen, it’s still unclear to me what it is you want to do, what is it you want to do with this new column? did you read the help file I pointed you to? that showed a transformation from a baseline.
> 
> I attach an example in v8.1, (althoguh v8.2 was released in July so I recommend being on the latest version if possible), where no reference is made to a prior column and creates 2 new columns - is that what you are asking?
> 
> The attached project shows another option, the custom transformation, which will allow you to create an empty column, one containing any text or indeed anything you can write a formula for, (see function list to the right).
> 
> Simon.

Thanks so much Simon. This helps!

I was trying to add a new column named formulation in dataset 1 using if(ID\>0, “oral”, “iv”), and did the same thing with dataset 2 using if(ID\>0, “iv”, “oral”). But after that, when I append two datasets together, the contents in the formulation column all disappeared. I guess it’s because the ID in dataset 1 and 2 are the same, so the program don’t know which function to use? That’s where I got confused. But what you are showing here is a better way to do it. Thanks 🙂
