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: 
kamal_sanguri
Specialist
Specialist

exclude some data with set analysis

Hi All,

I am stuck in a situation where I need to exclude some data with set analysis.

Please check attached QVW for more information.

Thanks,

Kamal

4 Replies
maxgro
MVP
MVP

if(GetPossibleCount([service family])>1, sum(cost),

if([service family]='server',

  sum({$ <[Service category]=E({$ <[service family]={mainframe}>} [Service category])>} cost),

  sum(cost)

))

kamal_sanguri
Specialist
Specialist
Author

Thanks for the help... I am sorry I could not clear the situation..

If both the items (Mainframe and server) are selected I need to have sum of all mainframe items and those items of server where service category is not alredy there in mainframe..

i.e  the sum of items which I see when I select mainframe and server items which I see when I select server.

Thanks,

b_garside
Partner - Specialist
Partner - Specialist

To exclude use a minus equals -= syntax;

Field-={"Value"}  Not equal

Field={"Value"}  must equal


Or  use E()  as post above suggested.

maxgro
MVP
MVP

if(GetPossibleCount([service family])>1,

  sum({$ <[Service category]=E({$ <[service family]={mainframe}>} [Service category])>+<[service family]={mainframe}>} cost),

  if([service family]='server',

  sum({$ <[Service category]=E({$ <[service family]={mainframe}>} [Service category])>} cost),

  sum(cost)

))