Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

how to pick up max value from 4 different fields ..

Hi all,

how to pick up max value from 4 different fields  by comparing them  with each  other

i want to pick up value from this field which is maximum

fieldfield 2field 3 field 4
1002005060
70206090
1 Solution

Accepted Solutions
Not applicable
Author

Hi

I reckon you should remove TOTAL to get the max for each line

max(RangeMax(f1,f2,f3,f4))

Chris

View solution in original post

6 Replies
maxgro
MVP
MVP

In a chart?

max(TOTAL RangeMax(f1,f2,f3,f4))

102378.jpg

Not applicable
Author

Hi

I reckon you should remove TOTAL to get the max for each line

max(RangeMax(f1,f2,f3,f4))

Chris

maxgro
MVP
MVP

Yes if  he wants the max at row level

maxgro
MVP
MVP

and rangemax works in script too

load

d,f1,f2,f3,f4,RangeMax(f1,f2,f3,f4);

LOAD * INLINE [

d,f1,f2,f3,f4

a,100, 200, 50, 60

b,70, 20, 60, 90

];

Not applicable
Author

Thanks for your replay

For easy Way to solve this

before this i have done it  by using if 

but your way is easy way to it

Not applicable
Author

Hi,

Christen in above Example  suppose that i want field name not field value after comparison

how can i do that