Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

Group By Question

ccano3
5 - Atom

Hello,

 

I am a beginner in Alteryx and I am attempting to prepare my data for analysis. I have a 'county of harvest' column and a 'result' column that displays whether the lab result was positive for CWD or not detected. I am attempting to group the counties together and formulate new rows that sum up the number of 'positive' cases and a row that sums up the number of 'not detected' (aka negative) cases. I would appreciate any assistance! Thank you in advance. 

 

ccano3_0-1650849531778.png

ccano3_1-1650849564809.png

 

6 REPLIES 6
Qiu
21 - Polaris
21 - Polaris

@ccano3 
A Summarize tool will be a good fit for your case, if I understand correctly 

0425-ccano3.PNG

ccano3
5 - Atom

Hello!

 

My mistake! The "Count" column is the population count for each county. I probably should adjust the name of that column. I do need to compute the number of positive cases and the number of not detected (negative) cases per county. When I perform the Summarize query, I am able to see the separation however, it does not count the total number of positive cases and the total number of negative cases. I hope this makes sense. Thank you! 

 

ccano3_0-1650853381528.png

 

Qiu
21 - Polaris
21 - Polaris

@ccano3 
Can you give a sample output? so I can match.
And would apprecaite you can post the data instead of a snapshot. :)

ccano3
5 - Atom

Hi,

 

I have added my .yxmd. I hope it helps! I'm posting a reference photo of how I would ideally like my output to look. Thank you for your assistance and patience. 

 

ccano3_0-1650854552647.png

 

flying008
15 - Aurora

Hi,@ccano3 

 

If Below data is input,

 

Country of HarvestResult
DekalbNot Detected
DecaturNot Detected
FayetteNot Detected
DyerNot Detected
FayetteNot Detected
FayettePositive
FentressNot Detected
FranklinNot Detected
GibsonNot Detected
GibsonPositive

 

then you need flow :

 

录制_2022_04_25_12_34_52_185.gif

 

ccano3
5 - Atom

Thank you all for your assistance! Everything worked out great! 

Labels
Top Solution Authors