Alteryx Designer Desktop Discussions

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

Grouping data

SylviaK
8 - Asteroid

hi 

 

Is there a smarter way for grouping the below data other than using multiple if functions: 

 

Essentially, if the value contains 3.1,3.2,3.3,3.4,3.5,6.2, or 6.4 I want the comment to read "Contains  Tax 3 or 6.2 or 6.4"

if the value only only contains either 5.1,5,2 or 5,3, I want the comment to read "Contains Tax 5 only" and

all other combination to be "other" 

 

Many thanks, 

Sylvia

 

 

 

ValueComment
1.1,3.4,4.3,6.1,6.2,8.4Contains  Tax 3 or 6.2 or 6.4
6.2,8.1Other
8.4,5.3Other
8.4,5.1,3.3Contains  Tax 3 or 6.2 or 6.4
8.4Other
1.1,12.2,3.1,7.1,7.3Contains  Tax 3 or 6.2 or 6.4
4.1Other
8.5,9.1Other
8.5,9.1Other
8.5,9.1Other
5.1,5.2Contains Tax 5 only
5.1,5.2,5.3Contains Tax 5 only
5.1Contains Tax 5 only
5.2Contains Tax 5 only
3.1,3.2,3.3,3.4Contains  Tax 3 or 6.2 or 6.4
6.3Other
3.5Contains  Tax 3 or 6.2 or 6.4
1.1,3.1,3.5,7.2,9.3Contains  Tax 3 or 6.2 or 6.4
3.5Contains  Tax 3 or 6.2 or 6.4
1.2,3.1Contains  Tax 3 or 6.2 or 6.4
1 REPLY 1
SylviaK
8 - Asteroid

Apologies the second line should read

 

ValueComment
1.1,3.4,4.3,6.1,6.2,8.4Contains  Tax 3 or 6.2 or 6.4
6.2,8.1Contains  Tax 3 or 6.2 or 6.4
8.4,5.3Other
8.4,5.1,3.3Contains  Tax 3 or 6.2 or 6.4
8.4Other
1.1,12.2,3.1,7.1,7.3Contains  Tax 3 or 6.2 or 6.4
4.1Other
8.5,9.1Other
8.5,9.1Other
8.5,9.1Other
5.1,5.2Contains Tax 5 only
5.1,5.2,5.3Contains Tax 5 only
5.1Contains Tax 5 only
5.2Contains Tax 5 only
3.1,3.2,3.3,3.4Contains  Tax 3 or 6.2 or 6.4
6.3Other
3.5Contains  Tax 3 or 6.2 or 6.4
1.1,3.1,3.5,7.2,9.3Contains  Tax 3 or 6.2 or 6.4
3.5Contains  Tax 3 or 6.2 or 6.4
1.2,3.1Contains  Tax 3 or 6.2 or 6.4
Labels