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

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
Top Solution Authors