Community Conundrum 25: Feature Visualization is now live! Read More

Formula if, elif, else

Level 2
Level 2
Formula if, elif, else

What's the formula for if, elif,else?

I have 3 categories in column M and with formula i try  if(M<0, "negative", "positive","neutre") don't work !!

Do you have another formula?

2 Replies
Dataiker
Dataiker

Hi @MS 

You could try

if(M<0, "negative", if(M>0, "positive","neutre"))

 

Alternatively, you could use a Python processor and use if,elif,else as you seem to want.

I hope this helps!

Level 2
Level 2
Author

Thanks