Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Use Dynamic Select to Remove Columns that are not Zero

mattpeltcfa
7 - Meteor

Hello,

 

I am trying to use the below workflow to parse a .txt file and capture an account balance. The balance sometimes appears in different pieces of the parsed data, so I am looking to dynamically select the balance column that contains the balance and remove the ones that contain zero. All fields are currently VString data types. Can someone please help me with this?

 

mattpeltcfa_0-1597762494479.png

mattpeltcfa_1-1597762530784.png

 

 

2 REPLIES 2
echuong1
Alteryx Alumni (Retired)

I suggest converting everything to numbers first. From there, you can use a conditional statement to check to see if one of the columns is 0 and if it is, use the second one. 

 

See attached for an example.

echuong1_0-1597763110724.png

 

ImadZidan
12 - Quasar

Hello @mattpeltcfa ,

 

If you don't want to explicitly reference a field name. you can do this.

Just an idea. I hope it helps.

 

I agree with @echuong1 , field types should be consistent.

 

 

Labels