Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello everyone
I have this problem:
I have a table
ART, ANNO, TIPOMOV, QTA
A, 2009,E,4
A,2008,U,1
A,2010,E,5
A,2011,U,3
B,2008,E,6
B,2012,U,8
B,2011,U,2
and I should get the last year (max) in which each ART came out (U)
basically I should get
ART, YEAR
A, 2011
B,2012
can someone help me?
I have tried putting Aggr = (distinct Max (YEAR), CDARMA) but it returns the last year that ART was handled, regardless of whether U or E.
Translated with Google Translate - Qlik Community Administrative Team
Salve a tutti
ho questo problema:
ho una tabella
ART, ANNO, TIPOMOV, QTA
A, 2009,E,4
A,2008,U,1
A,2010,E,5
A,2011,U,3
B,2008,E,6
B,2012,U,8
B,2011,U,2
e dovrei ottenere l'ultimo anno (max) in cui ciascun ART è uscito (U)
in buona sostanza dovrei ottenere
ART, ANNO
A, 2011
B,2012
qualcuno riesce ad aiutarmi?
io ho provato mettendo = Aggr (distinct Max (ANNO), CDARMA) ma mi restituisce l'ultimo anno che ART è stato movimentato, indipendentemente che sia U o E.
dimensione
ART
espressione
max({$ <TIPOMOV={U}>} ANNO)
thank you, your suggestion solved my problem