Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
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])))?