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

Penetration percentage

obridgeman
7 - Meteor

Hi, 

 

Apologies as I am relatively new to Alteryx, but I was wondering how you would best use Alteryx to work out the penetration of certain values for a given variable.

 

For example, if I have sorted and concatenated the data to look similar to:

 

Basket 1Apples,Oranges,Bananas,Soap,Toothpaste
Basket 2Bananas,Soap,Lettuce,Chocolate
Basket 3

Apples,Alcohol,Toothpaste

Basket 4Apples,Hat,Oranges,Soap

 

What would be the best way of organising a workflow to then work out the Basket Penetration of each item?

 

So ending up with like:

 

ProductApplesOrangesBananasSoapToothpasteLettuceChocolateHat
Total Occurrence32232111
% Penetration75%50%50%75%50%25%25%25%

 

Thanks,

 

Oli

4 REPLIES 4
neilgallen
12 - Quasar

@obridgeman Still would need a bit of formatting and it's a little messy, but it would get you there. Wanting the table horizontally is what takes the most effort here.

 

 

CharlieS
17 - Castor
17 - Castor

Here's a bit of a long winded way to achieve the desired output that works through each calculation step. 

ponraj
13 - Pulsar

Here is the sample workflow for your case.  Hope this is helpful. 

 

WorkflowWorkflow

obridgeman
7 - Meteor

Thank you all for the quick replies!!

 

This ended up being the solution that worked the best for the data I had.

 

I had to split the string up and unique it in order to get the accurate penetration (multiple of the same items in the same basket) but got there in the end!

 

Definitely learned a bit more from this so thanks again!

 

Oli

Labels