Alteryx Designer Desktop Discussions

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

Adding the number of columns that meet a criteria

essemMLB
7 - Meteor

Hello Alteryx community:

 

I have a set of 5 columns, each containing a value from 1 - 4. 

 

I would like to add a new column that sums the number of columns from the set of 5 IF the value in the column is 1. 

 

For example:

 

COLUMN A = 1

COLUMN B = 2

COLUMN C = 1

COLUMN D = 1

COLUMN E = 2

 

Would result in 

 

COLUMN F = 3

2 REPLIES 2
JosephSerpis
17 - Castor
17 - Castor

Hi @essemMLB I mocked up a workflow let me know what you think? 

essemMLB
7 - Meteor

Works for me, thanks!

Labels