Options

I am getting error when generate attribute

sgnarkhede2016sgnarkhede2016 Member Posts: 152 Contributor II
edited March 2020 in Help
I am write condtion in generate attribute

Quarter     =>  if(%{MONTH} <= 3,10,100)

After executing getting error

"Error in evaluting expression: '=' must have argument same type

Best Answer

  • Options
    sgnarkhede2016sgnarkhede2016 Member Posts: 152 Contributor II
    Solution Accepted
    solved I need to use eval(%{MONTH} )

Answers

  • Options
    MartinLiebigMartinLiebig Administrator, Moderator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert, University Professor Posts: 3,524 RM Data Scientist
    btw,
    eval(%{MONTH+"<=3") 

    also works :)

    Cheers,
    Martin
    - Sr. Director Data Solutions, Altair RapidMiner -
    Dortmund, Germany
Sign In or Register to comment.