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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
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 (2)
1 Solution

Accepted Solutions
Chanty4u
MVP
MVP

try this

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

View solution in original post

3 Replies
agigliotti
MVP
MVP

Hi @nilesh_gawali ,

Maybe this:

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

I hope it can helps.

Best Regards

The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it
Chanty4u
MVP
MVP

try this

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

nilesh_gawali
Contributor II
Contributor II
Author

Thank you @Chanty4u