Alteryx Designer Desktop Discussions

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

sum value of row in case of number of row values are the same and & keep 1 line with sum

kimdelgadillo
7 - Meteor

hello

 

looking for the following:

 

if the values project, id, period and costs are the same (bold lines)  then the hours should be summed, and only 1 line kept with the sum of the hours (changed lines in bold in second table, please note only 1 line is retained with the sum)

 

input table

PROJECTidperiodHOURScostsFileName
DEB4931474851802-1333250filename1
DEB4931531261801-1332550filename1
DEB4931531261802-842550filename1
UBS2647094618031122700filename1
UBS264709461803982700filename1
UBS264709461804632700filename1
UBS2761580181803112471filename1
UBS2761580181804112471filename1
UBS2761590351803112471filename1
UBS276159035180312471filename1
UBS2761604601803133471filename1
UBS276160460180456471filename1
ZYF4251474851801-563600filename1
ZYF4251521551801-422900filename1
ZYF4251521551802-282900filename1
ZYF4251530381802-72900filename1
ZYF426906961801-954900filename1
ZYF4261409601801-814900filename1
ZYF4261495001801-773600filename1
ZYF4261564281801-422900filename1

 

output table

PROJECTidperiodHOURScostsFileName
DEB4931474851802-1333250filename1
DEB4931531261801-2172550filename1
UBS2647094618032102700filename1
UBS264709461803982700filename1
UBS264709461804632700filename1
UBS2761580181803112471filename1
UBS2761580181804112471filename1
UBS2761590351803124471filename1
UBS2761604601803133471filename1
UBS276160460180456471filename1
ZYF4251474851801-563600filename1
ZYF4251521551801-422900filename1
ZYF4251521551802-282900filename1
ZYF4251530381802-72900filename1
ZYF426906961801-954900filename1
ZYF4261409601801-814900filename1
ZYF4261495001801-773600filename1
ZYF4261564281801-422900filename1
4 REPLIES 4
NicoleJohnson
ACE Emeritus
ACE Emeritus

You'll want to use the Summarize tool! Use Group By for all the fields except the hours, and then choose Sum for your Hours field. 

 

Cheers,

NJ

LordNeilLord
15 - Aurora

Hey @kimdelgadillo

 

The summarize tool is perfect for this job!

 

Just sum Hours and group by everything else :)

 

SumGroup.PNG

kimdelgadillo
7 - Meteor

Thanks a lot! it works

 

kimdelgadillo
7 - Meteor

Thanks a lot! it works

Labels