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

Two conditions to count the sum

Hi guys,

I have the following table:

1.PNG

I apply the condition: SUM({<[Month]={'1'}>} [Amount]) and get this:

2.PNG

For the second table I need to count the sum of amount with only indexes A, B, and C, but the statement

=sum( {<[Index]={'A','B','C'}>}  {<[Month]={'1'}>}   [Amount]) doesn't work.

As a result I need to get in the text object the sum = 68

Does anybody have some ideas how to apply to conditions to get the right answer?

Thanks a lot for anysuggestions in a advance!

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi Alexander,

try this:

sum( {$<[Index]={'A','B','C'},[Month]={1}>}   [Amount])


​Hope this helps

View solution in original post

3 Replies
Anonymous
Not applicable
Author

Hi Alexander,

try this:

sum( {$<[Index]={'A','B','C'},[Month]={1}>}   [Amount])


​Hope this helps

Not applicable
Author

Yes, it works! 😃 Thanks a lot !

Anonymous
Not applicable
Author

No problem, happy to help!