Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

Adding fields that share a similar value each day

brian_truong
5 - Atom

Hi, 

 

So I'm trying to SUM [CAPACITY] and [OCCUPANCY] with each time that Seaton House is mentioned within each occupancy date. Hopefully, the final result is just one row per day that gives the total capacity and occupancy for each day. AlteryxP1.png

 

Thanks,

 

Brian

4 REPLIES 4
cmcclellan
13 - Pulsar

Use a Summarize tool - Shelter_Name and Occupancy_Date should be set to "group by".Capacity and Occupancy should be set to Sum

MarqueeCrew
20 - Arcturus
20 - Arcturus

@brian_truong,

 

I would use a summarize tool to get the "desired" data.  You could filter it for Seaton House or include all shelters.  Your choice.  I then union the data together with the original data and perform a sort by date and shelter to get a new output record for each shelter.

 

capture.jpg

 

Cheers,

 

Mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
brian_truong
5 - Atom

That method does group the data together, however, I was wondering if it would be possible to keep the rest of the data set and just have a new row that can be created to reflect the sum of the occupancy/capacity per day. 

cmcclellan
13 - Pulsar

To do that, union the totals back on to the original data :) 

Labels