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

IF THEN Replace Statement

vujennyfer
8 - Asteroid

Hello, 

I am trying to use the IF THEN statement to count the max addresses for a given name and then replace all the addresses with the most populated one. To goal is to have one address per name. 

 

IF [_current_name_]

THEN count(max(address_1)) AND

REPLACE(address_1, city, state, zip) with max(address_1, city, state, zip)

 

before: vujennyfer_0-1614189838742.png

after: vujennyfer_1-1614189897859.png

 

 

 

2 REPLIES 2
PhilipMannering
16 - Nebula
16 - Nebula

Hey @vujennyfer 

 

You won't be able to do this in the Formula Tool. Your best bet is something like this,

PhilipMannering_0-1614190620545.png

 

vujennyfer
8 - Asteroid

This worked perfectly!! Thank you @PhilipMannering 🙂 

Labels
Top Solution Authors