Alteryx Designer Desktop Discussions

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

Mapping Data to see how many unique characteristics are there

LeeZH1998
7 - Meteor

How do I find out which type of characteristic is most prevalent in which type of fruit? I am very lost right now, help

 

😕

FoodType of FoodCharacteristic 1Characteristic 2
MangoFruitsSweet, SourSoft, Chewy
SpinachVegetableBitter, SourSoft, Long
SteakMeatSalty, SpicyChewy, Grainy
Gummy BearCandySweet, SourChewy, Flavourful
CabbageVegetableSweet, SpicyCrunchy
Duck MeatMeatSalty, SweetChewy, Crispy
9 REPLIES 9
atcodedog05
22 - Nova
22 - Nova

Hi @LeeZH1998 ,

 

Can you give us the logic behind it.

 

How do to tag a characteristic as most prevalent if there any condition?

 

Can you provide some sample output.

LeeZH1998
7 - Meteor

I apologize as I must have asked it in a confusing fashion, my sample output would be something like this

 

Input   
FoodType of FoodCharacteristic 1Characteristic 2
MangoFruitsSweet, SourSoft, Chewy
SpinachVegetableBitter, SourSoft
SteakMeatSalty, SpicyChewy, Grainy
Gummy BearCandySweet, SourChewy, Flavourful
CabbageVegetableBitter, SpicyCrunchy
Duck MeatMeatSalty, SweetChewy, Crispy
    
Output   
Type of FoodCharacteristicCountPercentage
FruitsSweet125%
FruitsSour125%
FruitsSoft125%
FruitsChewy125%
VegetablesBitter233%
VegetablesSour117%
atcodedog05
22 - Nova
22 - Nova

Hi @LeeZH1998 ,

 

Here is a workflow for the task.

atcodedog05_0-1601292786912.png

Input

atcodedog05_1-1601292816048.png

Output

atcodedog05_2-1601292843534.png

 

Hope this helps : )

 

If this helps please mark the post as solution.

LeeZH1998
7 - Meteor

Thank you so much! Cheers to you!

LeeZH1998
7 - Meteor

Hi @atcodedog05, apologies for another quick question,

Input   
FoodType of FoodCharacteristic 1Characteristic 2
MangoFruitsSweet, SourSoft, Chewy
SpinachVegetableBitter, SourSoft
SteakMeatSalty, SpicyChewy, Grainy
Gummy BearCandySweet, SourChewy, Flavourful
CabbageVegetableBitter, SpicyCrunchy
Duck MeatMeatSalty, SweetChewy, Crispy

 

Type of FoodType of CharacteristicCharacteristicCountPercentage
FruitsCharacteristic 1Sweet125%
FruitsCharacteristic 1Sour125%
FruitsCharacteristic 2Soft125%
FruitsCharacteristic 2Chewy125%
VegetablesCharacteristic 1Bitter233%
VegetablesCharacteristic 1Sour117%

 

Is it possible for Alteryx to have this sort of output? This new one would require another additional column detailing which characteristic was this sorted from. Thanks!

atcodedog05
22 - Nova
22 - Nova

Hi @LeeZH1998 

 

Sure definitely its possible. I will take a quick look at it.

atcodedog05
22 - Nova
22 - Nova

Hi @LeeZH1998 ,

 

Here is a workflow for the task.

 

Output

atcodedog05_0-1601378074102.png

Workflow

atcodedog05_1-1601378088030.png

Use select to remove un needed columns

 

Hope this helps : )

 

If this helps please mark the post as solution.

LeeZH1998
7 - Meteor

This really does help! Thanks so much!

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @LeeZH1998 

 

Cheers and happy analysing : )

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels