Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

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
14 - Magnetar

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
14 - Magnetar

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

Labels
Top Solution Authors