SOLVED
IF formula and data range
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
miki2024
6 - Meteoroid
‎12-07-2023
04:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hello,
I'm trying to categorize the number of students into three buckets based on their eye sight.
S = from > 10 to 20
M = from >20 to 30
L= from >50
IF [Count of students]>10 THEN "S"
ELSEIF [Count of students]>20 THEN "M"
ELSEIF [Count of students]>50 THEN "L"
ELSE "N/A" ENDIF
When I run the results, I cannot capture the M and L using the above formula. Wonder if I miss anything?
Solved! Go to Solution.
Labels:
- Labels:
- Alteryx Practice
- Data Science
- Fun
1 REPLY 1
17 - Castor
‎12-07-2023
05:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hey @miki2024, if you reverse your conditions then that should help i.e. have the >50 first, then >20 and then finally >10. Also, not sure if it's a typo but your current 'M' condition will cover 20-50, not 20-30 as you stated at first.
IF [Count of students]>50 THEN "L"
ELSEIF [Count of students]>20 THEN "M"
ELSEIF [Count of students]>10 THEN "S"
ELSE "N/A" ENDIF
