Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Getting the most record record

Hi

I was wondering if someone could help me with this.

I have the following data

DateItem Code
Price
01/01/2012ITEM112
01/02/2012ITEM124
01/03/2012ITEM1

36

03/04/2012ITEM140

Is there anyway in Qlikview where I can just read in the most recent record for each item.

Thanks

Andy

1 Solution

Accepted Solutions
Not applicable
Author

Hi ,

     Try the below Code

Load FirstValue(Price) as Price , Max(Date) as Date

Resident Table Group by ItemCode Order by Date .

View solution in original post

4 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     Try this expression.

     sum({<Date = {"$(=max(Date))"}>}Price)

     Add dimension as Item_Code.

     This will give you latest record.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Not applicable
Author

Thats for the answer, but I was wondering if its possible to do this in the script.

Thanks

Andy

Not applicable
Author

try this

Not applicable
Author

Hi ,

     Try the below Code

Load FirstValue(Price) as Price , Max(Date) as Date

Resident Table Group by ItemCode Order by Date .