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

Subtraction in SET

Hi All,

I'm trying to do a minus (subtraction) using SET but it only returns the first row of data and doesn't return the second row of data.

Please provide assistance.

Thanks,

Capture.PNG

1 Solution

Accepted Solutions
alexdataiq
Partner - Creator III
Partner - Creator III

Maybe try this:

=money(

     sum({<Department={'Technology'}, [Fund Manager]={'Goldman Sachs', 'Smith Barney'}>} Sales)

     -

     sum({<Department={'Finance', 'Marketing', 'Corp Bond Sales'}, [Fund Manager]={'Goldman Sachs', 'Smith Barney'}>} Sales)

)


Cheers

View solution in original post

4 Replies
alexdataiq
Partner - Creator III
Partner - Creator III

Maybe try this:

=money(

     sum({<Department={'Technology'}, [Fund Manager]={'Goldman Sachs', 'Smith Barney'}>} Sales)

     -

     sum({<Department={'Finance', 'Marketing', 'Corp Bond Sales'}, [Fund Manager]={'Goldman Sachs', 'Smith Barney'}>} Sales)

)


Cheers

sunny_talwar

Its difficult to know what you are trying to do just by looking at the expression. Do you have a sample that you can share with us?

Not applicable
Author

Thanks Guys for all your help!!!!!

alexdataiq
Partner - Creator III
Partner - Creator III

Glad to help!