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: 
deepti_singh
Creator II
Creator II

Aggregate data

Hi,

Please help me with the below requirement. I have data as below

Trade    Payout    Date                Commission

A           A1           07/06/2016      $50

A           A2           07/06/2016      $75

A           A3           07/06/2016      $35

B          B1           08/06/2016      $50

B          B2           08/06/2016      $25

B          B3           09/06/2016      $75

C           C1           09/06/2016      $50

C           C2           09/06/2016      $50

C           C3           10/06/2016      $15

The requirement is to show the data as follows, that means for each trade for a given date, show the sum of commissions for its payout that are less than or greater than $100. See how in the given example, the 4th row is not shown or suppressed.

A       A1, A2, A3    07/06/2016    $160

B       B1, B2          08/06/2016     $ 75

B       B3                09/06/2016     $ 75

C      C1,C2           09/06/2016    $100  (suppress or not show this row)

C      C3                 10/06/2016    $ 15

Thank you.

Deepti

Labels (1)
1 Solution

Accepted Solutions
Not applicable

Hi Deepti,

Please do the following steps.

load * inline
[
Trade , Payout, Date , Commission

A , A1 , 07/06/2016 , 50

A , A2 , 07/06/2016 , 75

A , A3 , 07/06/2016 , 35



B , B1 , 08/06/2016 , 50

B , B2 , 08/06/2016 , 25

B , B3 , 09/06/2016 , 75



C , C1 , 09/06/2016 , 50

C , C2 , 09/06/2016 , 50

C , C3 , 10/06/2016 , 15
]
;

Create a pivot Table

Choose Trade and Date as dimensions.

Expression1: Concat(Payout, ',')
Expression2: Sum(Commission)

Good luck.

Ram

View solution in original post

5 Replies
Not applicable

Hi Deepti,

Please do the following steps.

load * inline
[
Trade , Payout, Date , Commission

A , A1 , 07/06/2016 , 50

A , A2 , 07/06/2016 , 75

A , A3 , 07/06/2016 , 35



B , B1 , 08/06/2016 , 50

B , B2 , 08/06/2016 , 25

B , B3 , 09/06/2016 , 75



C , C1 , 09/06/2016 , 50

C , C2 , 09/06/2016 , 50

C , C3 , 10/06/2016 , 15
]
;

Create a pivot Table

Choose Trade and Date as dimensions.

Expression1: Concat(Payout, ',')
Expression2: Sum(Commission)

Good luck.

Ram

Not applicable

To supress 100, modify expression2 as follows.

if(Sum(Commission)<> 100, Sum(Commission), 'NA')

sunny_talwar
MVP
MVP

This?

Capture.PNG

deepti_singh
Creator II
Creator II
Author

It worked. Thanks Ramkumar.

Thanks.

Deepti

deepti_singh
Creator II
Creator II
Author

It worked with this method as well. Thanks Sunny.

Thanks.

Deepti