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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
satishqlik
Creator II
Creator II

need help on aggr()!!

Hello Viewers,

I want to show only year wise top performers of the last 5yrs.

So my output would be like this

eidnamyr1sal1
1a2010600
2b2011900
3c20121200
4d20131500
5e20141800

attached below xl for your reference.

Plz suggest how can I achieve this?

Any advice would be appreciated. Thanks in advance!!!

Labels (1)
1 Solution

Accepted Solutions
petter
Partner - Champion III
Partner - Champion III

You don't need Aggr() for this one.

Just have:

dimension:     yr1

expression 1: Max(sal1)

expression 2: FirstSortedValue( name, -sal1 )

In a straight table.

View solution in original post

4 Replies
petter
Partner - Champion III
Partner - Champion III

You don't need Aggr() for this one.

Just have:

dimension:     yr1

expression 1: Max(sal1)

expression 2: FirstSortedValue( name, -sal1 )

In a straight table.

satishqlik
Creator II
Creator II
Author

yes that's exactly am looking for and thanks petter for your quick response.!

petter
Partner - Champion III
Partner - Champion III

happy to be of help

pratap6699
Creator
Creator

sum({<numyear={">=$(=Max(numyear -4))<=$(=Max(numyear))"}>}sales)

it should be your requirement try it once