Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Using exclude E() with multiple set modifiers

Hi

I am trying to return some data by excluding particular items.

Example: Return all the sales that are not dogs or were not paid by cash

Method 1

The following function does not give me what I want, because there are nulls in the data that I also want to return

Sum( <${

<Animal -= {'Dog'}> +

<Payment -= {'Cash'}>

          }> Sales)

Method 2

I was hoping to use exclude instead, as it handles the nulls. However, this won't work either - I think it is because E() cannot handle multiple set modifiers.

Sum( <${

OrderNumber = E({$ <Animal = {'Dog'}> +

       <Payment = {'Cash'}>})

          }> Sales)

Any thoughts or help would be appreciated.

1 Solution

Accepted Solutions
sunny_talwar

May be this:

Sum(<${OrderNumber = E({$<Animal = {'Dog'}>}) + E({$<Payment = {'Cash'}>})>} Sales)


or this

Sum(<${OrderNumber = E({$<Animal = {'Dog'}>}) * E({$<Payment = {'Cash'}>})>} Sales)

View solution in original post

3 Replies
sunny_talwar

May be this:

Sum(<${OrderNumber = E({$<Animal = {'Dog'}>}) + E({$<Payment = {'Cash'}>})>} Sales)


or this

Sum(<${OrderNumber = E({$<Animal = {'Dog'}>}) * E({$<Payment = {'Cash'}>})>} Sales)

sunny_talwar

Or this:

Sum(<${OrderNumber = {"=Animal <> 'Dog' or Payment <> 'Cash'}>} Sales)

Not applicable
Author

Fantastic! Thanks, Sunny.

I appreciate your prompt and accurate response