In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

How to replace a value in a column

tavares123456
5 - Atom

Hi!

 

I have discovered that a value (in the column Frete Realizado) in my data is wrong, and I need to replace it with the right one.

 

What I was trying to do is (random values just to exemplify) : 

IF [Usina/Centro] = "1111"
AND [Código Cliente] = "1111"
AND [Descrição SKU] = "Name"
AND [Mês] = "June"
AND [DT] = "11111111"
AND [Remessa] = "11111111"
THEN 6133.49 <correct value>
ELSE [Frete Realizado]
ENDIF

But when I check a sum of the column Frete realizado before and after the formula tool, it doesn't change the total sum.

Does anyone knows how can I solve this?

2 REPLIES 2
caltang
17 - Castor
17 - Castor

Create a mapping table via a different sheet or use a text input tool with those dimensions and value to replace. Then join the dimensions of interest and take the correct value. 

Your IF statement is probably referencing different columns right? 

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
PuffinPanic
11 - Bolide
11 - Bolide

It sounds to me like one of your if clauses is not being met.

 

As an alternative to @caltang's solution I'd diagnose by putting the output into a separate column (temporarily), then adding one clause at a time to the if statement and running to see what the output is. This will let you see what is causing your if statement to drop through to the else clause.

PuffinPanic
Alteryx ACE
Don't panic - I've got Alteryx!
Labels
Top Solution Authors