Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
zied_ahmed1
Specialist
Specialist

condition with 3 Fields

Hello, I have 3 fields field1 field 2 and field3

I want when :

1/ field 1 > field 2  field3 i display 1

2/ Field2> Field 1 >Field3 I display 2

3/Field3> Field2 >Field1   I display 3

If we have just 2 Fields we will do : if (Field1>Field2,1,2)

Regards

3 Replies
Anonymous
Not applicable

if (Field1>Field2 and Field2>Field3,1,(if(field2>field1 and Field1>field3,2,(IF(Field3>Field2 and Field2>field1,3)))))??

zied_ahmed1
Specialist
Specialist
Author

Just we Need 1>2 and 1>3 etc...

Anonymous
Not applicable

Didnt get you Zied.

You can change the condition to

if (Field1>Field2 and Field1>Field3,1,(if(field2>field1 and field2>field3,2,(IF(Field3>Field2 and Field3>field1,3))))).


But both are same. Transtive property