Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
cristianj23a
Partner - Creator III
Partner - Creator III

Get last value per year and month in accumulated.

Hi, In this line graph I get the accumulated values that the user requested, but want the value of the last month and year selected.

Captura.PNG

In this case the maximum value is 171281.50.

Captura2.PNG

In this simple table there is no filter, therefore the maximum value April / 2017, if I select 2016 the maximum value is December / 2016.

Please, someone can help me how to solve this problem?.

I attach the QVW and Excel.

https://www.linkedin.com/in/cristianjorge/
Do not forget to mark as "Accepted Solution" the comment that resolves the doubt.
1 Solution

Accepted Solutions
sunny_talwar

Try this

=FirstSortedValue(Aggr(Avg(Aggr(RangeSum(Above(Sum({$<Año,Nom_Mes>} [Ctd.en UM entrada]), 0, RowNo())), Material, (Fe.contabilización, (NUMERIC)))), Nom_Mes, Año), -Aggr(Nom_Mes + (Año*100), Nom_Mes, Año))

View solution in original post

2 Replies
sunny_talwar

Try this

=FirstSortedValue(Aggr(Avg(Aggr(RangeSum(Above(Sum({$<Año,Nom_Mes>} [Ctd.en UM entrada]), 0, RowNo())), Material, (Fe.contabilización, (NUMERIC)))), Nom_Mes, Año), -Aggr(Nom_Mes + (Año*100), Nom_Mes, Año))

cristianj23a
Partner - Creator III
Partner - Creator III
Author

Thank you very much, is correct

https://www.linkedin.com/in/cristianjorge/
Do not forget to mark as "Accepted Solution" the comment that resolves the doubt.