Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
raadwiptec
Creator II
Creator II

not equal

Hi

Iam trying to add an expression for not equal but does not work

Sum({<Country= {'01 '},[Sales] -= {'Insurance'}>}Values)

any suggestions

5 Replies
sunny_talwar

Have you made sure that the first part of the set analysis is not the issue here? I guess just focus on the second pary

Sum({<[Sales] -= {'Insurance'}>}Values)

This should sum all Values except for those where Sales = Insurance

trdandamudi
Master II
Master II

The expression looks ok to me except there is a space {'01 '}. Try as below:

Sum({<Country= {'01'},[Sales] -= {'Insurance'}>}Values)

See if this works...

Anil_Babu_Samineni

I am not sure, Something like below

Sum({<Country = {01}, Sales -= {"Insurance"}>} Values)

OR

Sum({<Country = {01}, Sales =- {"Insurance"}>} Values)


OR


Sum({<Country = {01}, {<Sales = {*} - Sales = {"Insurance"}>}>} Values)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
raadwiptec
Creator II
Creator II
Author

hi sunny

i just tried with this Sum({<[Sales] -= {'Insurance'}>}Values)  still it is the same .. i get values but it is wrong

basically iam trying to exclude insurance take all other categories

but if spoecify

Sum({<Country= {'01'},[Sales] = {'Leasing','X','Rent'}>}Values) - it gives me correct results. but i need to enter many categories..

sasikanth
Master
Master

Also try this,

Sum({$<Country= {'01'},[Sales] ={'*'}- {'Insurance'}}>}Values)