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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

get sum of maximum values

get sum of maximum values

6 Replies
Not applicable
Author

Hi,

Use Sum(Max(FieldName))  Or post your sample data and need with some more information

suniljain
Master
Master

You can use Max(Sales) in expression .

MK_QSL
MVP
MVP

If your field is as a dimension in chart, you can use sum (field_name)

Example dimension = customer name

Expression = max (ordervalue) This will give you max order value by customer.

Not applicable
Author

Hi

use the rank function or dimension limits tab or max function

Not applicable
Author

Let's say you have a Measure Field and a Dimension Field for that Measure

DIMENSION MEASURE

A                 5

A                 6

B                 7

C                 8

A                 7

B                 1

If you are trying to sum the maximum values you are trying to:

First:  geting the maximum values:

A                7

B                7

C               8

so you want to get a LIST of maximum values --> thats in qlikview

AGGR(Max(Measure),Dimension)   ---> something like SELECT MAX(MEASURE) GROUP BY DIMENSION

Then you want to make the sum so--->

SUM(AGGR(Max(Measure),Dimension) )

senpradip007
Specialist III
Specialist III

Hi nishani,

Please upload your application otherwise it is meaningless.