Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Update several fields within certain rows

h12
8 - Asteroid

Hi all

 

I have the following data set (Note, the original data set has over 1mil rows)

 

ABCDEFG
[Null]1[Null][Null][Null]465
[Null]2[Null][Null][Null]787
[Null]3[Null][Null][Null]89

 

I essentially want to update the [NULL] fields to 'N/A' in one go. I can update it using a formula tool but that takes some time as the main data set has 10+ columns which contain [NULLS] which I need to update.

 

Final output to look like

 

ABCDEFG
N/A1N/AN/A]N/A465
N/A2N/AN/AN/A787
N/A3N/AN/AN/A89

 

 

Many thanks

10 REPLIES 10
atcodedog05
22 - Nova
22 - Nova

Hi @h12 

 

You can formula's on multiple fields using Multi-field formula tool.

https://community.alteryx.com/t5/Interactive-Lessons/Multi-Field-Formulas/ta-p/424422

 

Hope this helps : )

Jean-Balteryx
16 - Nebula
16 - Nebula

Hi @h12 ,

 

You can do so using a Multi-Field formula. Pay attention about the fields type, in my solution it uses string fields but if you need to replace null values in numeric fields you'll have to change it a bit.

 

Attached is an example.

atcodedog05
22 - Nova
22 - Nova

Hi @h12 

 

Here is how you can do it. Refer the highlighted options.

 

Workflow:

atcodedog05_0-1627553124374.png

 

IsEmpty() checks for blanks and nulls. If your usecase is specific to Null you can change to IsNull()

 

Hope this helps : )

 

h12
8 - Asteroid

Hi @atcodedog05 Thank you!

 

What if my data set is like this..

 

TypeBC
BlueNULLNULL
RedNULLNULL
Yellow3NULL
RedNULLNULL
BlueNULLNULL

 

Where I only want to update the fields if the type is red or blue?

 

Jean-Balteryx
16 - Nebula
16 - Nebula

Here is how you can do it !

h12
8 - Asteroid

Thank you @atcodedog05 ! Sorry, one more thing, can I choose the columns I want to update? In your screenshot youve updated all columns, but lets say I only want to update the NULLS in D and E..

 

Instead of current field would I select the actual column(s)?

atcodedog05
22 - Nova
22 - Nova

Hi @h12 

 

You can check for type also like below.

 

Workflow:

atcodedog05_0-1627553460691.png

 

Hope this helps : )

 

atcodedog05
22 - Nova
22 - Nova

Hi @h12 

 

You can select only those required columns in the above section.

atcodedog05_0-1627553549853.png

 

Hope this helps : )

 

Jean-Balteryx
16 - Nebula
16 - Nebula

In the tool, you can check the columns you want, either all or only some of them :

 

Capture d’écran 2021-07-29 à 12.12.57.png

 

Here I just check C column.

Labels