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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

SET Analysis

Hi,

cannot get the below to work. Both are showing the very same result. Any ideas?

Sum({$<Amount = {"<0"}>}{$<Counterpart -= {'XXXX', 'YYYYY', 'QQQQQ'}>}Amount)

Sum({$<Amount = {">0"}>}{$<Counterpart -= {'XXXX', 'YYYYY', 'QQQQQ'}>}Amount)

Best regards,

Olle

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Try this and Update its working:

Sum({$<Amount = {"<0"},Counterpart -= {'XXXX', 'YYYYY', 'QQQQQ'}>}Amount)

Sum({$<Amount = {">0"},Counterpart -= {'XXXX', 'YYYYY', 'QQQQQ'}>}Amount)

View solution in original post

5 Replies
Anonymous
Not applicable
Author

Hi,

Please can you elaborate on your expected output.

Anonymous
Not applicable
Author

Try:

Sum({$<Amount = {"<0"},Counterpart -= {'XXXX', 'YYYYY', 'QQQQQ'}>}Amount)

Sum({$<Amount = {">0"},Counterpart -= {'XXXX', 'YYYYY', 'QQQQQ'}>}Amount)

morganaaron
Specialist
Specialist

Hi Olle,

You don't need to create a new set, just to continue modifying the same set.

Try:

Sum({$<Amount = {"<0"}, Counterpart -= {'XXXX', 'YYYYY', 'QQQQQ'}>}Amount)

Sum({$<Amount = {">0"}, Counterpart -= {'XXXX', 'YYYYY', 'QQQQQ'}>}Amount)

Not applicable
Author

I need to sum up all positive values, for all counterparts, except XXX, YYY and QQQ

Same goes for negative values

//O

Anonymous
Not applicable
Author

Try this and Update its working:

Sum({$<Amount = {"<0"},Counterpart -= {'XXXX', 'YYYYY', 'QQQQQ'}>}Amount)

Sum({$<Amount = {">0"},Counterpart -= {'XXXX', 'YYYYY', 'QQQQQ'}>}Amount)