Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
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.

1 Solution

Accepted Solutions
tresesco
MVP
MVP

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

View solution in original post

2 Replies
tresesco
MVP
MVP

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

Anonymous
Not applicable
Author

Thanks, Set Analysis was the answer.