Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Maury_19
Partner - Contributor III
Partner - Contributor III

Estrazione ultimo listino di vendita

Ciao a tutti,

ho una tabella come questa (listino di vendita) con articoli e prezzi che cambiano per data.

Maury_19_0-1699885092534.png

Come faccio a creare in Qlik una nuova tabella con solo il prezzo di listino più recente suddiviso per articolo?

Maury_19_1-1699885223792.png

Grazie, Maurizio

 

Labels (1)
2 Solutions

Accepted Solutions
vincent_ardiet_
Specialist
Specialist

If you have access to the script, start by adding this, this will ease for the object:

left join (miaTabella) load articolo,max(data) as data,1 as piuRecenteData Resident miaTabella Group By articolo;

Then, if your object you can use a set analysis to keep only the more recent:

only({<piuRecenteData={1}>}prezzo)

View solution in original post

agigliotti
Partner - Champion
Partner - Champion

Hi @Maury_19 ,

Maybe this in your chart object as price expression:

FirstSortedValue( prezzo, -data )

I hope it can helps.

Best Regards

View solution in original post

5 Replies
vincent_ardiet_
Specialist
Specialist

You want this in a script or in a sheet object, and in any case, do you have access to the script?

Maury_19
Partner - Contributor III
Partner - Contributor III
Author

meglio in un oggetto di lavoro (comunque ho accesso allo script)

 

vincent_ardiet_
Specialist
Specialist

If you have access to the script, start by adding this, this will ease for the object:

left join (miaTabella) load articolo,max(data) as data,1 as piuRecenteData Resident miaTabella Group By articolo;

Then, if your object you can use a set analysis to keep only the more recent:

only({<piuRecenteData={1}>}prezzo)

agigliotti
Partner - Champion
Partner - Champion

Hi @Maury_19 ,

Maybe this in your chart object as price expression:

FirstSortedValue( prezzo, -data )

I hope it can helps.

Best Regards

Maury_19
Partner - Contributor III
Partner - Contributor III
Author

Grazie a tutti, dovrebbe funzionare.

Avrei trovato anche una soluzione tramite funzione: la testo, se è ok la posto qui.