Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
hemachandran
Partner - Creator
Partner - Creator

Find the Maximum sales Year of the customer

Hi,

   I have the data like below,

    

customerproductsalesYear
Ashoe20002008
BMirror50002008
CIronBox30002008
DLight10002008
ELamp5002009
ECable2002010
EIronbox10002008
GChar35002010
GTV50002009
APaper60002010

In that data I need to find the maximum sales year of the customer. I need the output as below

The Required Output is

Customer      Product       Sales        Year          MaximumSaleYear

A                      shoe            2000         2008         2008

B                      Mirror          5000          2008        2008

C                     IronBox       3000          2008        2008

D                      Light            1000         2008        2008

E                      Lamp            500           2009       2008

E                      Cable           200           2012       2008

E                      IronBox        1000         2008       2008

G                      Char              3500        2010       2009

G                       TV                 5000        2009       2009

A                       Paper           6000        2010       2010  

I need the required outptut in straight table or in backend script..

Thanks in Advance..

1 Solution

Accepted Solutions
johnw
Champion III
Champion III

1 Reply
johnw
Champion III
Champion III

Capture.PNG