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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Sara_3
Creator II
Creator II

Set Analysis with SUM and Max Function

The below is the sample data , when I select Customer it shows the one customer with multiple weeks fields , I need to SUM of weeks values in text box.

The Weeks field consist of :

Max({<[Category Type]={"ABC"},[Weeks]={">0"}>} [ Weeks])

Please help me how I put SUM function with the above Set Analysis to get  SUM of the values.

Output:

SUM of Weeks field in text box:

34 + 23 + 17 ===   74 

74 will be my desire output of this Customer.

 

Customer ID - Status Weeks
101-01 34
101-02 23
101-03 17
Labels (2)
1 Reply
eronevil
Creator
Creator

Does this help SUM(AGGR(Max({<[Category Type]={"ABC"},[Weeks]={">0"}>} [ Weeks])))?