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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Svetlana1
Contributor
Contributor

Set analysis does not limit data by date. FirstSortedValue

Hey, guys. How do I display the last price of an item on the date of sale? Unable to set a date.

FirstSortedValue(${DateSales={"">=$(Max(DatePrice))""}}price,-DatePrice)

5 Replies
sunny_talwar

What if there are two prices for a particular DateSales with Max DatePrice?

image.png

Svetlana1
Contributor
Contributor
Author

display the maximum price

Svetlana1
Contributor
Contributor
Author

So trying to withdraw, and always shows the last price

sunny_talwar

Not sure I understand your requirement?

Svetlana1
Contributor
Contributor
Author

Example,
at the DateSales 02.06.2018 и 10.06.2018 to bring the price from DatePrice 05.05.2018
Since the DateSales 02.06.2018 the price of the product was 0.05

at the DateSales 09.07.2018 to bring the price from DatePrice 04.07.2018
Since the DateSales 09.07.2018 the price of the product was 0.02