Qlik Community

QlikView Layout & Visualizations

Discussion Board for collaboration on QlikView Layout & Visualizations.

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
MVP
MVP

Maximum of two expressions

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

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

7 Replies
Partner
Partner

Maximum of two expressions

HI,

Can u attach ur application here?

-Sathish

Not applicable

Maximum of two expressions

HI.

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

Regards,

Montal.

Not applicable

Maximum of two expressions

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

Maximum of two expressions

Thanks for your replies but it still doesnt work.

I cant post the file because im open in server.

MVP
MVP

Maximum of two expressions

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

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

Not applicable

Maximum of two expressions

Hi Use below functions

rangemax (1,2,4)
returns 4

rangemax (1,'xyz')
returns 1

Highlighted
Not applicable

Maximum of two expressions

Yes that's it thanks. Its working now.