Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Minimum of two fields


Hi All,

I have two fields like below. I would like to see the minimum value of those two fields in third field with our uisng IF condition.

A     B     C

10     12     10    

20     15     15

5       2       2

Thanks in advance.

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

4 Replies
MK_QSL
MVP
MVP

RangeMin(A,B,C)

MK_QSL
MVP
MVP

or RangeMin(A,B) as C

MK_QSL
MVP
MVP

Load *,If(A<B, A,B) as C Inline

[

     A, B

     10,12

     20,15

     5,2

];

Not applicable
Author

hi

also try this

if(A<B,A,if(B<A,B))