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

located maximum per line excluding records based on other column (trova massimo per riga escludendo record sulla base di altra colonna)

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.

2 Replies
maxgro
MVP
MVP

dimensione

ART

espressione

max({$ <TIPOMOV={U}>} ANNO)

Not applicable
Author

thank you, your suggestion solved my problem