i'm having trouble using the generate arbitary attribute

noha
noha New Altair Community Member
edited November 2024 in Community Q&A
i want to write an expression that means. If the text column contains keywords 1, 2 and 3 it classifies them as important else it classifies them to be not important. i tried this but it's not working
if([Text](contains(%{keyword1} || %{keyword2} || %{keyword3})), "important", "not important")
Tagged:

Answers

  • noha
    noha New Altair Community Member
    i also tried this if([Text]==eval(#{keyword1}||#{keyword2}||#{keyword3}), "not important", "important")