We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Summarize total counts and individual counts

kyxz
5 - Atom

Hi, I have a table that is like this

 

YearResult

2009

Pass
2010Pass
2009Fail
2010Fail
2009Pass
2009Pass

 

I wanted the result to be like this

YearTotalPassFail
2009431
2010211

 

Where:
Total is the total count of rows per year

Pass is the total count of Pass
Fail is the total count of Fail

 

I tried using the summarize tool and filter but I am not getting the result I wanted.

 

Hope someone can point me to the right direction and tool to use.

 

Thank you!

3 REPLIES 3
Prometheus
12 - Quasar

@kyxz You can start off with the Summarize tool to count each occurrence of Pass and Fail per year by grouping on Year and Result then counting Result. After that, you can use the Cross Tab tool to pivot the data and add your counts. A Formula tool will get your Total and then sort your data using Sort and move the columns around using Select.

Summarize.png

CrossTab.png

Total.PNG

rzdodson
12 - Quasar

@kyxz slightly different approach to the one that @Prometheus offered, but produces the same result.

 

Solution - pic.png

kyxz
5 - Atom

Thank you, Prometheus and rdodson, both works perfect!

Labels
Top Solution Authors