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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
mario-sarkis
Creator II
Creator II

Set analysis


hey All

my question is  i have this fields

Currency       amount

001                1000

002                1500

003                1500

004                2000

005                1000

006                 500

i need to do the summation of amount with condition the currency has to be diffrent then 001 and 002

Sum({<Currency <>{'001','002'}>}Amount) this isn't work

Thank you hope you can help

1 Solution

Accepted Solutions
sasiparupudi1
Master III
Master III

sum(amount)-sum({<Currency={'001','002'}>}amount)

View solution in original post

10 Replies
Not applicable

Hi ,

try this

Sum({<Currency -={'001','002'}>}Amount)

prashantbaste
Partner - Creator II
Partner - Creator II

Hi Mario

You can try sum( {$<Currency= E({1<Currency={'001','002'}>})>} Amount)


Let me know if this is helpful for you?


--

Regards,

Prashant P Baste

Anonymous
Not applicable

Hi,

You can even use um({<Currency={'*'}-{'001','002'}>}Amount)

krishna20
Specialist II
Specialist II

Hi,

Try like

Sum({<Currency<>{'001'}>}Amount) + Sum({<Currency<>{'002'}>}Amount)

Anonymous
Not applicable

Hi,

Follow the procedure:

1. First select expression as sum(amount) and create a pie chart.

2. Select 001 and 002 currency and add a bookmark with name 'book'.

3. Now, go to properties and change expression with following expression:

          =sum({1-Book}(amount))

That's it.

You will get a pie chart which will be showing currency except 001 and 002.

Have a look over following example.

vcanale
Partner - Creator II
Partner - Creator II

Hi,
try this:

sum({$<Currency={'*'}-{'001','002'}>}Amount)

sasiparupudi1
Master III
Master III

sum(amount)-sum({<Currency={'001','002'}>}amount)

Anonymous
Not applicable

Hi,

Follow the procedure:

1. First select expression as sum(amount) and create a pie chart.

2. Select 001 and 002 currency and add a bookmark with name 'book'.

3. Now, go to properties and change expression with following expression:

          =sum({1-Book}(amount))

That's it.

You will get a pie chart which will be showing currency except 001 and 002.

Gabriel
Partner - Specialist III
Partner - Specialist III

Hi,

Try using this Set Analysis. What you wanted to say in your expression is give me the sum of Amount , Where currency ={*} all currency but remove Where currency = 001,002 that's where you use - {001,002}

Here is the solutions

({$<Currency = {*} - {001,002}>} amount)

Let me know if it work