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

Last Price Paid

I have a list of Material numbers along with the prices that we paid for them over a full year with dates.  The prices are not always the same.  However, I am creating a Pivot table in quikview that will show me the latest price paid.  Any idea how to write that in the Expression field?

1 Solution

Accepted Solutions
rustyfishbones
Master II
Master II

The Following will work

=FIRSTSORTEDVALUE(Price,-Date)

the below will work to find out the Date where the Price is at it's highest

=DATE(FIRSTSORTEDVALUE(Date,-Price))

hope that helps

Regards

Alan

View solution in original post

3 Replies
danielrozental
Master II
Master II

Firstsortedvalue(Price, -Date)

MayilVahanan

Hi

Use

FirstSortedValue(Price,-date)

Hope it helps

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

The Following will work

=FIRSTSORTEDVALUE(Price,-Date)

the below will work to find out the Date where the Price is at it's highest

=DATE(FIRSTSORTEDVALUE(Date,-Price))

hope that helps

Regards

Alan