Documentation
DataRobot University
Pathfinder
Community GitHub
DataRobot.com
English
日本語
Sign Up
Sign In
Community Browser
DataRobot Community
Discussions
AI Cloud Platform Trial (signups paused)
Platform
DataRobot API
Announcements, tips, and tricks
Announcements
AI Accelerators
Tips and tricks
Browse
Discussions
AI Cloud Platform Trial (signups paused)
Platform
DataRobot API
Announcements, tips, and tricks
Announcements
AI Accelerators
Tips and tricks
All Community
This category
This board
Knowledge base
Users
Products
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Search instead for
Did you mean:
Introducing the new era of #ValueDrivenAI. Welcome to the DataRobot AI Platform 9.0. Find out more.
Community
:
Archived content
:
Paxata-related posts
:
How to create Age range in compute field??
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
How to create Age range in compute field??
H369199
NiCd Battery
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Printer Friendly Page
Report Inappropriate Content
03-18-2020
08:37 PM
How to create Age range in compute field??
Hi,
I want to create a calculated field which can show the age group :
If Age<=19 THEN "14-19"
ELSEIF
Age>=20 and Age<=29
THEN "20-29"
ELSEIF
Age>=30 and Age<=39
THEN "30-39"
ELSEIF
Age>=40 and Age<=49
THEN "40-49"
ELSE
"50+"
END
can you please help me, how to write this in Paxata??
Regards,
Praveen
Labels
(1)
Labels
Labels:
Data
0
Kudos
Reply
Share
Reply
All forum topics
Previous Topic
Next Topic
1 Reply
Akshay1
DC Motor
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Printer Friendly Page
Report Inappropriate Content
03-18-2020
10:05 PM
Hello Praveen,
Could you please try the following compute statement to check if this works for you?
if(@Age@<=19,"14-19", if(@Age@<=29,"20-29",if(@Age@ <=39,"30-39",if(@Age@<=49,"40-49","50+"))))
Thanks,
Akshay
0
Kudos
Reply
Share
Reply
Post Reply