Alteryx Designer Desktop Discussions

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

Classifying the Data

AnkurS
6 - Meteoroid

Hi All,

 

Got this data set and in case of Food want to populate only "Classification 2" field as Non Veg and "Classification 1" should have nothing. Please advise. 

 Type 1Type 2Classification 1Classification 2
FruitsVEG Veg Only 
VeggiesVEG Veg Only 
FoodVEGNon VegVegNon Veg

Thanks in advance

7 REPLIES 7
summarizer
9 - Comet

Here is one solution using the Formula tool with two conditional statements.  I gave your first column the title "Type" - and you can clean the null downstream later.

 

Veg.jpg

AnkurS
6 - Meteoroid

Thanks @summarizer  for your answer but the problem I have is Values in "Type 1" and "Type 2" are dynamic and what I am after is if both these have data (which is dynamic) then my final data set should only populate Type 1 field and discard Type 2. Please disregard Classification 1 & 2 fields.

Thanks

summarizer
9 - Comet

Visuals are always helpful. Can you redo your original graphic to show your ideal output?  It sounds like maybe you need some conditional formula still whether in a multi row or a regular formula tool.

AnkurS
6 - Meteoroid

This is how it has to be:

 

Input Data Stream

 

LocationRegion ARegion B
TARMetroRegional
WER Regional
TRUMetro 
PCKMetroRegional

 

Output Data

 

LocationRegion ARegion BFinal Class
TARMetroRegionalMetro
WER RegionalRegional
TRUMetro Metro
PCKMetroRegionalMetro

 

Thanks!

grazitti_sapna
17 - Castor

Hi @AnkurS ,

 

Here is the solution to your problem.

Cheers!

output1.PNG

Sapna Gupta
AnkurS
6 - Meteoroid

Thanks @grazitti_sapna 

will it be possible for you attach workflow please 

grazitti_sapna
17 - Castor

@AnkurS 

Sure.

Sapna Gupta
Labels