Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Formula for a additional column

Samals
6 - Meteoroid

Hi,

I want to add an column a Col3 which says invalid if There is not at least 1 Col1 value ending with N for each col2 value.

 

 

Col1 Col2Col3 
ZB833Valid 
ZB833Valid 
ZB833Valid 
ZB833Valid 
ZN833Valid 
SB2030Invalid
SB2030Invalid
SB2030Invalid
SB2030Invalid
SB2030Invalid
SB2123Valid 
SB2123Valid 
SB2123Valid 
SB2123Valid 
SN2123Valid 
SBA014Invalid
SBF001Invalid
SBF001Invalid
SBF001Invalid
2 REPLIES 2
patrick_digan
17 - Castor
17 - Castor

@Samals I've attached an example workflow demonstrating how I would attack this problem. I'll edit this post with a multi-row example as well shortly.

 

EDIT: I've added an alternate solution which essentially just applies the multi-row formula tool both forwards and backwards. It's less tools and easier on the eyes, but I think I would tend to use my original solution more often in practice.  They both provide the same answer.

Jim7
8 - Asteroid

Here's another solution, if you want to keep the original order you can just add a Record ID tool at the beginning and resort by Record ID.

Labels