Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
nilesh_gawali
Contributor II
Contributor II

SUM(VALUES) based on MAX of another value

=Max(Aggr(Sum(value), Date))  => this expression is giving max(sum(values), I want sum(values) for max date in provided range.

As soon as we select a date range, I want the sum of values (from another column) of the maximum date for that range.

e.g. If I select the range 1-Jan to 4-Feb and the maximum date present is 28-Jan, then it should take a sum of values (present in another column) for 28-Jan.

Labels (3)
1 Solution

Accepted Solutions
Chanty4u
MVP
MVP

try this

Sum({<Date = {"=Date = Max(Date)"}>} Value)

View solution in original post

3 Replies
agigliotti
Partner - Champion
Partner - Champion

Hi @nilesh_gawali ,

Maybe this:

Sum({<  Date = {"$(=Date(Max(Floor(Date))))"}>} value )

I hope it can helps.

Best Regards

Chanty4u
MVP
MVP

try this

Sum({<Date = {"=Date = Max(Date)"}>} Value)

nilesh_gawali
Contributor II
Contributor II
Author

Thank you @Chanty4u