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

Announcements
Posting on Qlik Community is temporarily paused. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
kolov007
Contributor III
Contributor III

Set Analysis

Hello.

I have a base with sales base. I need to count the number of outlets to sell the product 41 in the amount of > = 2,  it is necessary that the sample be in the field of business fields and the product is not made.

Help me please.

Screenshot_1.jpgScreenshot_2.jpg

Labels (1)
15 Replies
MK_QSL
MVP
MVP

Not understood... please explain..

kolov007
Contributor III
Contributor III
Author

I need the number of outlets that the following conditions product 41> = 2 and product 42> = 1

Screenshot_1.jpgScreenshot_2.jpg

MK_QSL
MVP
MVP

=COUNT(

  {

  <Product=, Business=, [Product_Id]={'1033'}, Adress_Id = {"=SUM({1<Product=, Business=, [Product_Id]={'1033'}>}Quantity)>=2"}>

  *

  <Product=, Business=, [Product_Id]={'1031'}, Adress_Id = {"=SUM({1<Product=, Business=, [Product_Id]={'1031'}>}Quantity)>=1"}>

  }

Adress_Id)

MK_QSL
MVP
MVP

Or try this...

=COUNT(

  {

  <Product=, Business=, Product_Id = {'1031','1033'}, Adress_Id = {"=SUM({1<Product=, Business=, [Product_Id]={'1031'}>}Quantity)>=1 or SUM({1<Product=, Business=, [Product_Id]={'1033'}>}Quantity)>=2"}>

  }

Distinct Adress_Id)


kolov007
Contributor III
Contributor III
Author

Thank you

MK_QSL
MVP
MVP

Is that worked?