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