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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
nrwlafhus
Contributor II
Contributor II

Select Most Recent Record

I am trying to select to most recent record where Planned = 'N' (for the given combination of dimensions).

Here is my table:

nrwlafhus_0-1632497751022.png

I want the output to only show the following highlighted row:

nrwlafhus_1-1632497842110.png

Is there a way to achieve this using a chart expression?

1 Solution

Accepted Solutions
rubenmarin
MVP
MVP

Hi, you can using an expression like:

Sum({<Date={"$(=Max({<Planned={N}>} Date))"},Planned={N}>} Tons)

Maybe you need the add a date format:

Sum({<Date={"$(=Date(Max({<Planned={N}>} Date),'M/D/YYYY'))"},Planned={N}>} Tons)

View solution in original post

1 Reply
rubenmarin
MVP
MVP

Hi, you can using an expression like:

Sum({<Date={"$(=Max({<Planned={N}>} Date))"},Planned={N}>} Tons)

Maybe you need the add a date format:

Sum({<Date={"$(=Date(Max({<Planned={N}>} Date),'M/D/YYYY'))"},Planned={N}>} Tons)