Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Max and min value from pivot table


Hi everybody! I need calculate the max and min value of a pivot table.

For example:

Date               Import

02/02/2020     200

03/03/2020      0

04/04/2020      50

05/05/2020      500

06/06/2020      0

Import is an expresión: sum(Sales)

In this case:

max: 500

min: 50 (without zero)

I tried with differents expresións but it don't work.

Thank you!!

1 Solution

Accepted Solutions
rubenmarin

Not sure if this is what you want, please check attachment

View solution in original post

8 Replies
alexandros17
Partner - Champion III
Partner - Champion III

Could you send an example document?

rubenmarin

Hi andres, where you want to show your max and min values?

In example, for a text box it can be:

Max Value: =Max(Aggr(Sum(Import), Date))

Min Value: =Min(Aggr(If(Sum(Import)>0, Sum(Import)), Date))

ecolomer
Master II
Master II

See this example

You can see the max and the min value for each branch

Not applicable
Author


Max Value: =Max(Aggr(Sum(Import), Date))  ---> It shows all in zero

Min Value: =Min(Aggr(If(Sum(Import)>0, Sum(Import)), Date)) ------> It shows all with "-"

I want to show the max and min values in the pivot table, as an expresión.

I attached the file qvw.

rubenmarin

Hi Andres, those expressions were to put in a text box.

You want to show max and min values in the same pivot table? how? a column with the min and other with the max? only show the dates with the min and the max values?

Not applicable
Author

I need to show max and min values in the same pivot table. One column with the min and other with the max

rubenmarin

Not sure if this is what you want, please check attachment

Not applicable
Author

Great! It work now! Thank you!!