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

Using exclusion logic for two different fields in a single expression.

I have got two expressions:

1.sum({<percentage=e(percentage)>}amount)

2.sum({<amount=e(amount)>}amount)

actually for excluding  the selection of percentage and amount selection.

Can I include it in a single expression.?

Just like :- sum({<percentage=e(percentage) or amount=e(amount)>}amount)

But i think 'or' function wont work in this case, Shed some light on this 🙂

15 Replies
sunny_talwar

Then you need this one I believe:

=Sum({<percentage = e(percentage)> * <amount = e(amount)>} amount)


and I believe this one will also work:


=Sum({<percentage = e(percentage), amount = e(amount)>} amount)

Anonymous
Not applicable
Author

Hi Anees,

please try below:

=sum({<percentage = e(percentage),amount = e(amount)>}amount)

Regards

Neetha

Not applicable
Author

Nop, That too didnt worked.

Anonymous
Not applicable
Author

please can you elaborate on your requirement and post sample data if possible.

Regards

Neetha

jonathandienst
Partner - Champion III
Partner - Champion III

I think you should post a sample. Some attempt by yourself at a diagnosis or specifics of how they did not work would also help.

Something else to try:

=Sum({1 - <percentage = P(percentage), amount = P(amount)>} amount)

=Sum({1 - <percentage = P(percentage), amount = P(amount)>} percentage)

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Anonymous
Not applicable
Author

hi anees,

may be try:

=Sum({<percentage -= percentage, amount -= amount>} amount)

=Sum({<percentage -= percentage, amount -= amount>} percentage)

Regards

Neetha