Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Latest value for each year

Hi Everyone,


I want to include two years of data into the report and i need to find latest value based on date column for each particular year.

For 2018 the latest value is 3000. For 2017 latest value is 1000.

 

Rec NoNameDateValue
1A1/1/20181000
2A1/2/20182000
3A1/3/20183000
4A1/1/20171000
5A1/2/20173000
6A1/3/2017

1000

Thanks in Advance

13 Replies
sunny_talwar

In text box object... you can try this

=Avg(Aggr(FirstSortedValue(Value, -Date), Name, org, Year_Org))

When org = 12300 is selected

Capture.PNG

When org = 12301 is selected

Capture.PNG

Anonymous
Not applicable
Author

Thanks a lot .. It worked

Anonymous
Not applicable
Author

Thanks for your help...

sunny_talwar

I am glad we were able to help you