Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Sara_3
Creator
Creator

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])))?