Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

Dynamic Imputation

swoodling
7 - Meteor

Hello all-

 

I am working on an analytic app which allows users to import their own data sets. Due to the fact some data sets result in more columns in the output, my imputation tool that is being used to replace nulls with zero's does not work for any new columns in the users data set. Is there a way to dynamically replace nulls if the number of row/columns is not fixed?

 

Thanks!

2 REPLIES 2
JosephSerpis
17 - Castor
17 - Castor

Hi @swoodling you can indeed if you use a Multi-Field tool as it has the option of Dynamic/Unknown fields that can cope if the fields change. I mocked up a workflow let me know what you think?

atcodedog05
22 - Nova
22 - Nova

Hi @swoodling 

 

Instead of imputation tool we can mimic the same action with Multi-field tool.

Multi-field tool has a option to select dynamic or unkown columns. By which it will select all new columns added.

atcodedog05_0-1602784645755.png

 

Workflow:

 

Capture.PNG

Input:

Capture2.PNG

Output:

Capture3.PNG

 

Formula:

 

IF Isnull([_CurrentField_]) THEN 0  ELSE [_CurrentField_] ENDIF

 

 

Hope this helps 🙂


If this post helps you please mark it as solution. And give a like if you dont mind 😀👍

Labels