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. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. 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 Create Another Column Based on Nulls

jsamstad
8 - Asteroid

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
8 - Asteroid

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

Labels
Top Solution Authors