Replacing Sales for whatever field holds your sales values - this will give you the latest sale with a date less than the selected date, bear in mind that without a selection this Date field will find the minimum date possible, and so would return a null value as there's no date less than the minimum of your dataset - you could make your set more complex to allow for this if need be.