Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Maximum of two expressions

Hi All,

I have a pivot chart in which i have five calculated expressions.

error loading image

I need to find the maximum of Net Long Positions and Net Short Positions.

I have used the formula,

Max([Net Long Position],[Net Short Position]), but it shows a null value.

Can someone please help and let me know how to get the maximum of the two expressions.

Thanks

1 Solution

Accepted Solutions
johnw
Champion III
Champion III

Is this a column you're adding to the chart?

rangemax([Net Long Position],[Net Short Position])

View solution in original post

7 Replies
sathishkumar_go
Partner - Specialist
Partner - Specialist

HI,

Can u attach ur application here?

-Sathish

Not applicable
Author

HI.

Maybe instead of "max(...)" try "rangemax(...)"

Regards,

Montal.

Not applicable
Author

Hi,

Take a look at function: rangemax( expr1 [ , expr2, ... exprN ] )

So in your case try: rangemax(Max([Net Long Position]),Max([Net Short Position]))

Kind regards,

Huub

Not applicable
Author

Thanks for your replies but it still doesnt work.

I cant post the file because im open in server.

johnw
Champion III
Champion III

Is this a column you're adding to the chart?

rangemax([Net Long Position],[Net Short Position])

Not applicable
Author

Hi Use below functions

rangemax (1,2,4)
returns 4

rangemax (1,'xyz')
returns 1

Not applicable
Author

Yes that's it thanks. Its working now.