The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
Data classification with 3 values through Turbo Grep
User222697
Member Posts: 17 Contributor II
Hi,
i want generate a new colum which computes three possible values (A,D or H)
A = Score2>Score1
D = Score2==Score1
H = Score1>Score2
Score1 Score2
2 4
2 2
5 1
Result
A
D
H
Through the following syntax i can generate two values, but how can i generate the three possible options (A,D,H)?
if(Score1>Score2, "H", "A or D")
Thanks and sorry my ignorance
i want generate a new colum which computes three possible values (A,D or H)
A = Score2>Score1
D = Score2==Score1
H = Score1>Score2
Score1 Score2
2 4
2 2
5 1
Result
A
D
H
Through the following syntax i can generate two values, but how can i generate the three possible options (A,D,H)?
if(Score1>Score2, "H", "A or D")
Thanks and sorry my ignorance
Tagged:
0
Best Answer
-
varunm1 Member Posts: 1,207 UnicornRegards,
Varun
https://www.varunmandalapu.com/Be Safe. Follow precautions and Maintain Social Distancing
7