Free Trial

Alteryx Designer Desktop Discussions

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

Sum based on condition

shikhar6339
7 - Meteor

Hi All,

 

I am looking to apply sum formula based on a condition. Please refer to below data. I need a new column which will show the sum of Open and Close status for a particular person.

 

PersonStatusTime
AOpen1
AOpen2
AOpen1
AClose2
AClose2
AOpen3
BClose1
BClose2
BClose1
BOpen3
BOpen2
BOpen1
COpen1
COpen2
CClose3
CClose2
CClose1
COpen2
COpen3

 

 

Output Required:

 

PersonOpen TimeClose Time
A64
A64
A64
A64
A64
A64
B65
B65
B65
B65
B65
B65
C86
C86
C86
C86
C86
C86
C86

 

2 REPLIES 2
Luke_C
17 - Castor
17 - Castor

Hi @shikhar6339 

 

Use a cross tab tool. Group by person, set Status to be the columns, and choose Time as the value. There will be an option to choose sum as the aggregation method

binuacs
21 - Polaris

@shikhar6339 One way of doing this

image.png

Labels
Top Solution Authors