In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Calculate the percentage split across two categories

SnapperFlower
7 - Meteor

Hi Alteryx Community,
I’m trying to calculate the percentage split of Apples and Bananas across two categories (Boxes and Trays) in Alteryx. Here’s what I want to achieve in excel (also attached)

4 REPLIES 4
jrlindem
12 - Quasar

This is certainly possible in Alteryx.  I've shown below and attached a workflow that shows you how to re-arrange the data, compute the Grand Total and Percentages, and then arrange it back to match your output example.  May not be entirely useful in that final format, but this gives you the basis for working the data around.

 

jrlindem_0-1764795513927.png

 

 

Hope this helps!  -Jay

SnapperFlower
7 - Meteor

Thank you for this, much appreciated. Could you explain the logic of this tool?

SnapperFlower_0-1764804989098.png

 

jrlindem
12 - Quasar

All i'm doing there is establishing the order in which I wanted the data rows to appear.  This is "brute forcing" the order so that your fruit values showed up, and then the Grand Total, and then the percentages.  Nothing more than a creative way to make the data sort in the order I wanted it.  The values of 50 and 99 are arbitrary.

SnapperFlower
7 - Meteor

 Thank you!

Labels
Top Solution Authors