Qlik Community

Ask a Question

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
Join this live chat April 6, 10AM EST - QlikView to Qlik Sense REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
suepenick
Creator
Creator

Need Expression to exclude 2 types in sum If expression

I am trying to use an expression to sum sales for everyting except to types

Sum (if(SaleType <> 'Pontoons' or 'Engines', SalesDollars)

It's excluding the Pontoons but not the Engines

How do I write this expression to work properly

1 Solution

Accepted Solutions
Not applicable

Hello,

Try this

Sum( {$-<SaleType={'Pontoons'}>-<SaleType={'Engines'}> } SalesDollars)

Cheers,

JuanD

View solution in original post

4 Replies
Not applicable

Hello,

Try this

Sum( {$-<SaleType={'Pontoons'}>-<SaleType={'Engines'}> } SalesDollars)

Cheers,

JuanD

View solution in original post

Not applicable

Sum ({<SaleType-={'Pontoons','Engines'}>} SalesDollars)

suepenick
Creator
Creator
Author

Thanks - it worked - I don't have a clue why - but maybe I'll understand what all the symbols are for!

suepenick
Creator
Creator
Author

This one did not work - I tried that from Chapter 11 in the Qlikview 11 book