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

Announcements
FLASH SALE: Save $500! Use code FLASH2026 at checkout until Feb 14th at 11:59PM ET. Register Now!
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
Champion III
Champion III

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...