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: 
Anonymous
Not applicable

Get expression for latest date

ex. Loaded table


Week, value

week 1, 2

week 1, 3

week 1, 1

week 2, 1

week 2, 3

week 3, 1

week 3, 2

I want to get : sum(value) for most recent week (i.e. "week 3"); I suspect a combination of aggr() and firstsortedvalue() should do the trick, but I can't nail it down.

Thanks for your help.

Labels (1)
1 Solution

Accepted Solutions
tresB
Champion III
Champion III

=Sum({<Week={"$(=MaxString({1}Week))"}>} Value)

View solution in original post

2 Replies
tresB
Champion III
Champion III

=Sum({<Week={"$(=MaxString({1}Week))"}>} Value)

Anonymous
Not applicable
Author

Thanks, Set Analysis was the answer.