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: 
aaronnayan
Creator III
Creator III

Set analysis for sales

Hi Guys

I need an expression to exclude a certain value from the selected field whilst calculating sales

Can you help?

the field is "Advisors"

the value is "BOB"

Sales field is "SALES"

Thankyou guys

Labels (1)
1 Solution

Accepted Solutions
devarasu07
Master II
Master II

Hi

Try like this,

sum({<Advisors-={'BOB'}>}Sales)

View solution in original post

6 Replies
devarasu07
Master II
Master II

Hi

Try like this,

sum({<Advisors-={'BOB'}>}Sales)

avinashelite
MVP
MVP

try like this

sum({<Advisors={"*"}-{'BOB'}>}Sales)

devarasu07
Master II
Master II

Hi,

PFA basics set analysis PDF document may be useful for you.

Anonymous
Not applicable

or this:

sum({$-<Advisors={"BOB"}>} Sales)

Anonymous
Not applicable

Hello,

Try this:

sum({<Advisors=e({1<Advisors={"BOB"}>})>}Sales)

P() &amp; E() and where do you use them?

Regards

Jacek.

sam_grounds
Contributor III
Contributor III

Yeah, I can confirm this totally works, however syntax highlighting doesn't like it and you'll get the dreaded red squiggly underline!

If you want a syntax friendly version try sum({$-$<Advisors={'BOB'}>}Sales).