Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Select row based on dates

Hi I have a sample data below of what I'm currenty viewing & what I would like to view.

Current

Customer #Customer NameItemlookupCodeDiscount
SaleStartDateSaleEndDate
1010AA93615%1/07/201130/06/2012
1010AA93615%1/07/201231/12/2012
1010AA93613%1/1/201331/12/2013
1111CC691219%1/07/201131/12/2012
1111CC691212%1/1/201301/03/2013

This is what I need, basically the latest saleenddate is all I'm interested in to see what is the latest sale for a Item.

Not sure what type of expression will produce this output for me

Customer #Customer NameItemlookupCodeDiscount
SaleStartDateSaleEndDate
1010AA93613%1/1/201331/12/2013
1111cc691212%1/01/201301/03/2013
12 Replies
Not applicable
Author

Thanks I tried it as a calculated dimension and expression gives me  //error in calculation for some reason.

er_mohit
Master II
Master II

see the file again here i use your item field in dimension side

Not applicable
Author

in pivot--

dimension1-[Customer #]

dimension2-[Customer Name]

dimension3-ItemlookupCode

expression1-FirstSortedValue(Discount,-Sale_EndDate)

eapression2-SaleStartDate

expression3-SaleEndDate