SOLVED
Invalid type operator <
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
Ben_D_S
6 - Meteoroid
‎10-07-2024
01:05 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
How is the 2nd < causing this formula (which was copied from a class exercise so I know it should work) to not complete
IF [Avg Sales per Customer] < 100
THEN 'Low'
ELSEIF [Avg Sales per Customer]< 200
THEN 'Avg'
ELSE 'High'
ENDIF
Solved! Go to Solution.
Labels:
- Labels:
- Machine Learning
3 REPLIES 3
binuacs
21 - Polaris
‎10-07-2024
01:13 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@Ben_D_S make sure the data type of the field [Avg Sales per Customer] is numeric not string type
Chaoued
7 - Meteor
‎10-08-2024
06:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Try This :
IF Tonumber([Avg Sales per Customer]) < 100
THEN 'Low'
ELSEIF Tonumber([Avg Sales per Customer]) < 200
THEN 'Avg'
ELSE 'High'
ENDIF
NB : The type of the new column is a string
‎10-08-2024
07:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thank you!
