Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask 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 Create Another Column Based on Nulls

jsamstad
7 - Meteor

Hello! 

 

How do I create another column (CLASS_ID) that is either the value 203 or 205 depending on if the SKU column is null. I'd like for this pattern to repeat throughout the table. So, the second, third, and sixth row of CLASS ID should be 203, 205, 203 with the other rows being null. Thanks in advance!

 

SKU
123
null
null
234
345
null
2 REPLIES 2
gautiergodard
13 - Pulsar

@jsamstad here is one way of doing it !

Let me know if it works.

 

Hope this helps.

jsamstad
7 - Meteor

🕺🕺🕺🕺Yes! The Append tool and Formula tool did the trick. Thanks 👊

Labels
Top Solution Authors