Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Replace N/A responses with 0 in survey response data

arundaka02
8 - Asteroid

Hi everyone

 

I want to replace 'N/A' responses to a '0' and change the data type from string to a numerical field.

 

The survey question asks the respondent to record their skill level on a subject and provides the following options:

 

  • N/A
  • 1
  • 2
  • 3

Because of the N/A, Alteryx recognises this data field as a V_string field. By replacing the N/A responses to 0, I then want to change the data type to a numerical field. 

 

The dataset contains 50+ columns that I need to change.

 

Can anyone help?

 

Thanks

KA

 

2 REPLIES 2
Jonathan-Sherman
15 - Aurora
15 - Aurora

Hi @arundaka02,

 

You could use a multi-field formula tool, this allows you to affect multiple columns (and change their data type at the same time)

 

Jonathan-Sherman_0-1598518219624.png

 

 

If this solves your issue please mark the answer as correct, if not let me know! I've attached my workflow for you to download if needed.

 

Regards,

Jonathan

arundaka02
8 - Asteroid

This is awesome, thanks @Jonathan-Sherman 

 

I've never used this tool before. 

Labels
Top Solution Authors