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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Set analysis

Hi,

How can I write the following expression so that I can include several account numbers?

sum({$<Account={'4645'}>}ClaimCost)

I would like the sum of account 4643, 4644, 4645, 4646, 4647, 4648 and 4649.

Thank you!

1 Solution

Accepted Solutions
rittermd
Master
Master

Try this

sum({$<Account={'4645',"4643","4644","4646","4647","4648","4649"}>}ClaimCost)

View solution in original post

4 Replies
robert_mika
MVP
MVP

sum({$<Account={'4645','4644'.....}>}ClaimCost)


or create a variable


sum({$<Account={$(vAcc)}>}ClaimCost)



Capture.PNG





rittermd
Master
Master

Try this

sum({$<Account={'4645',"4643","4644","4646","4647","4648","4649"}>}ClaimCost)

sunny_talwar
MVP
MVP

Or even without single quotes:

Sum({$<Account={4645, 4643, 4644, 4645, 4646, 4647, 4648, 4649}>}ClaimCost)

Anonymous
Not applicable
Author

Thanks for your quick reply everyone!

It works with double quotes, single quotes and also without quotes.