Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
sundarakumar
Specialist II
Specialist II

Expression help

Hi All,

Below is the sample data set, I want to create a straight table as shown in output.

Requirement: the country name which made the max sale for every year.

CountrysalesYear
a1002010
b2002010
c 3002010
d4002010
a8002011
b6002011
c 7002011
d5002011
a1002010
b2002010
c 3002010
d4002010
a8002011
b6002011
c 7002011
d5002011

output:

yearcountrysales
2010d800
2011a1600

Thanks in advance

Regards,

Sundar

11 Replies
sundarakumar
Specialist II
Specialist II
Author

Anbu,

This is extremely awesome stuff....

Thanks a lot ...

Regards,

-Sundar

anbu1984
Master III
Master III

This is better expr than Concat()

FirstSortedValue(Country,Aggr(-Sum(sales) ,Country,Year,prod))