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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
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

Labels (1)
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...