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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
chriscools
Creator II
Creator II

set analysis: exclude 2 values doesn't include all minus the 2 values

Hello,

i need to separate a salesamount by 2 groups of customers:

group 1 = sum(  {< WholesaleCustomerSegmentationLevel1 = {"Shop-in-Shop","eigen winkels"} >}  OrderPriceUnitNet * OrderQty)

and group 2 is everything excluded by the first group and i added a minus to the set analysis like this:

sum(  {< WholesaleCustomerSegmentationLevel1 -= {"Shop-in-Shop","eigen winkels"} >}   OrderPriceUnitNet * OrderQty)

but when i subtract these 2 numbers it's less than the total amount.

I found out it comes from the field "WholesaleCustomerSegmentationLevel1" which is empty for some customers.

Can i adapt the set analysis to give me anything excluding group 1 also taking into account the empty fields for those customers?

thanx!

grtz,

chris

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Maybe like

= sum(  {$ - < WholesaleCustomerSegmentationLevel1 = {"Shop-in-Shop","eigen winkels"} >}  OrderPriceUnitNet * OrderQty)

View solution in original post

3 Replies
swuehl
MVP
MVP

Maybe like

= sum(  {$ - < WholesaleCustomerSegmentationLevel1 = {"Shop-in-Shop","eigen winkels"} >}  OrderPriceUnitNet * OrderQty)

swuehl
MVP
MVP

Or create a field modifier on a key field using e() function:

Excluding values in Set Analysis

Maybe like

sum(  {< OrderID = e({<WholesaleCustomerSegmentationLevel1 = {"Shop-in-Shop","eigen winkels"} >}  ) >} OrderPriceUnitNet * OrderQty)

chriscools
Creator II
Creator II
Author

thanx, this worked perfect!!

i'll also look into your tip using the e() function

grtz