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: 
tinkerz1
Creator II
Creator II

Sum a set not equal to

Hi,

I am trying to use the following example to sum everything when in a set [ABC] that does no contain *Threshold*

Re: Not equal to in set analysis

Any help please...my 3 variants are not working, the last two are from the above example

Sum({[OHRL]<[ABC]<>{'*Threshold*'}, Group=OHRL::Group>}Data)

not equal too


Sum({[OHRL]<[ABC]-={'*Threshold*'}, Group=OHRL::Group>}Data)

not equal to v2
Sum({[OHRL]<[ABC]={"=[ABC] <>'*Threshold*'"}, Group=OHRL::Group>}Data)

4 Replies
swuehl
MVP
MVP

First variant is not expected to work.

Variants 2 should / could work. If you think it doesn't, please post some sample data, your expected results and the context you are using these expressions. Best by uploading a small sample QVW.

Variant 3 needs a modification to allow the wildcard usage:


Sum({[OHRL]<[ABC]={"= not ([ABC]  like '*Threshold*') "}, Group=OHRL::Group>}Data)

sunny_talwar

Try this may be:

=Sum({[OHRL]<[ABC] = e({<[ABC] = {'*Threshold*'}>}), Group=OHRL::Group>} Data)

pratap6699
Creator
Creator

use implicit function in set expression E()

=Sum({[OHRL]<[ABC] = E({<[ABC] = {'*Threshold*'}>}), Group=OHRL::Group>} Data)

ramoncova06
Partner - Specialist III
Partner - Specialist III

here goes another option

Sum({[OHRL]<[ABC]={"=index([ABC],'Threshold') < 1 "}, Group=OHRL::Group>}Data)