Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
sivarajs
Specialist II
Specialist II

find the maximum value across field

Hi,

i have 4 fields and i need to get field having maximum value

eg;

fieldname1 - 12

fieldname2 - 24

fieldname3 - 09

fieldname4 - 06

fieldname2 has the maximum value and i need to get this field either in script or in chart

Thanks

Sivaraj S

4 Replies
Sokkorn
Master
Master

Hi Sivaraj S,

Can you provide a sample data source with row and column and the result you looking for?

Regards,

Sokkorn

sivarajs
Specialist II
Specialist II
Author

see the xls i explained what i want

Not applicable

if(f1>f2 and f1>f3 and f1>f4, 'f1',

  if(f2>f1 and f2>f3 and f2>f4, 'f2',

   if(f3>f1 and f3>f2 and f3>f4, 'f3',

    if(f4>f1 and f4>f2 and f4>f3, 'f4'

         )

        )

        )

       ) as MaxFiled

sivarajs
Specialist II
Specialist II
Author

thanks for the solution its good i have already tried that .If we have some 3 or 4 fields then its ok but it should be generic

any idea