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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Help on aggr expression

Hi,

I need to find the minimum sales aggregated by Weeks. This needs to be calculated irrespective of the selected week. But the selections on other dimensions can affect the min sales value.

How can we acheive it? Refer the attachment

1 Solution

Accepted Solutions
Not applicable
Author

Try this:

=min({<Week=>}aggr(sum({<Flag={1},Week=>} Sales),Week))

View solution in original post

3 Replies
Not applicable
Author

Try this:

=min({<Week=>}aggr(sum({<Flag={1},Week=>} Sales),Week))

swuehl
MVP
MVP

Try maybe

=min( {<Flag={1},Week=>} aggr(sum({<Flag={1},Week=>} Sales),Week))

edit: Marc was somewhat faster. Same idea, just need to clarify how to handle the Flag field.

Not applicable
Author

It is working. Thank you...