Pardon our dust - Alteryx Academy is under construction. Lessons and courses completed on Community from now until January 20th will not be recorded.
Start Free Trial

Weekly Challenges

Solve the challenge, share your solution and summit the ranks of our Community!

Also available in | Français | Português | Español | 日本語
IDEAS WANTED

Want to get involved? We're always looking for ideas and content for Weekly Challenges.

SUBMIT YOUR IDEA

Challenge #289: Prep a Shoe List

NMorgan
Meteor

Quick question why does the below formula not work? For every row the Comment reads "3 Colors" even for the rows which contain only 1 or 2 colours?

 

IF NOT IsNull([Colour3]) THEN "3 Colours"
ELSEIF NOT IsNull([Colour2]) THEN "2 Colours"
ELSE "1 Colour"
ENDIF

NMorgan
Meteor

My solution

Christina_H
Magnetar

Solution attached

L_indahouse
Meteoroid

done

logdog0411
Comet
Spoiler
logdog0411_0-1685218818557.png

 

Fun challenge, although there's an error in the official output - several double color instances are included. 

 

The data cleansing and unique tools solve for this problem. 

Abdelaziz
Meteoroid

solution attached. 

zacky546
Asteroid
Spoiler
zacky546_0-1685959926104.png

 

OzlemSigbeku
Asteroid
Spoiler
OzlemSigbeku_0-1686243650759.png

 

trepryor
Asteroid

shoes workflow.png

trepryor
Asteroid

IF !IsNull([colors3]) THEN "3 Colours"
ELSEIF !IsNull([colors2]) THEN "2 Colours"
ELSE "1 Colour"
ENDIF

 

^ I think that the issue with your original formula was the use of NOT functions instead of exclamation points. I copied your formula, and replaced the "NOT"s with "!". This fix worked with my workflow. Hope this helps!