Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Max and Min values

Hi,

I've just started using QlikView and i'm not so familiar with the sheet objects.

I want to create an object which can show the 3 maxium and 3 minium values from an existing table.

How do I go about doing this?

Thanks.

10 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

    Can you please describe your problem in detail with example and sample application.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
SunilChauhan
Champion
Champion

see the attched file

hope this helps

Sunil Chauhan
Not applicable
Author

Hi Sunil,

I'm using the personal trial version on my pc and when I open your file it shows me an error message saying allocated memory exceeded.

Regards,

Mandeep

its_anandrjs

Hi,

Try to use Max(YourField,3) and Min(YourField,3) to find max and min

Rgds

Anand

SunilChauhan
Champion
Champion

load this into ur application

Load * inline [

Name,sales

a,10

b,20

c,30

d,40

e,50

f,60

g,70

h,80

];

take a bar chart

in dimention taake Name

and in expression

sum({<sales={">=$(=max(sales,3))<=$(=min(sales,3))"}>}sales)

and see ur result

Sunil Chauhan
Not applicable
Author

Hello

Thanks for this,

The problem that I have is that, I have a table with dimension and 4 categories (A, B, C and D). What I want to do is that from each category I want to show the top 3 and bottom 3 values and the corresponding dimension.

How do I go about doing this? I’ve attached the sample file.

Thanks in advance!

Regards

Mandeep

SunilChauhan
Champion
Champion

after reloading attach the sample

Sunil Chauhan
Not applicable
Author

Sorry I dont understand what you mean.

SunilChauhan
Champion
Champion

reload the test.qvw and then attach here

or else provide xls files

Sunil Chauhan