Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

MAx from from two or fields in script

Hi All,

I need to get the max values from multiple columns and want to do this in script.

e.g I have having below columns Col1 to Col4. I want to get another column as MaxValue in the script itself. Please advise

Col1Col2Col3Col4MaxValue
1341010
2222422
2233232

Thanks,

Sijo

1 Solution

Accepted Solutions
alexandros17
Partner - Champion III
Partner - Champion III

Here it is an example

View solution in original post

6 Replies
rajeshvaswani77
Specialist III
Specialist III

Preceding load and then if conditions will do the trick.

regards,

Rajesh Vaswani

alexandros17
Partner - Champion III
Partner - Champion III

Here it is an example

julian_rodriguez
Partner - Specialist
Partner - Specialist

Hello Sijo

Try this:

MyData:

LOAD

     Col1,

     Col2,

     Col3,

     Col4,

     RangeMax(Col1, Col2, Col3, Col4) AS MaxValue

FROM

MyData.xls

Not applicable
Author

Thanks

Not applicable
Author

Thanks Rajesh

Not applicable
Author

thnaks