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: 
pirotfab
Creator
Creator

Max date price over a year

Hello,


I have a database with prices depending on a date.
I would like to obtain, for each item, the price for the last date of the year.
Can you help me ?
Attached is an Excel example

Fabien

thanks

Labels (2)
1 Reply
MayilVahanan

HI

Try like below

MayilVahanan_0-1657613740799.png

 

LY: FirstSortedValue({<caldate={">=$(=Date(YearStart(Max(caldate),-1),'DD-MM-YYYY'))<=$(=Date(YearEnd(Max(caldate),-1),'DD-MM-YYYY'))"}>}pua, -caldate)

TY: FirstSortedValue(pua, -caldate)
or
FirstSortedValue({<caldate={">=$(=Date(YearStart(Max(caldate)),'DD-MM-YYYY'))<=$(=Date(YearEnd(Max(caldate)),'DD-MM-YYYY'))"}>}pua, -caldate)

 

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.