Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to set analysis in this case?(Qlik Sense)

Hi all,

I have received a requirement of below:

ProductShopSales Quantity
AS12
BS25
CS11
DS17

I would like to set an analysis of summing all the sales quantity if the shop has the Product A

Result should be 2+1+7 =10

Best Regards,

Louis

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

=SUM({<Shop = p({1<Product = {'A'}>}Shop)>}[Sales Quantity])

View solution in original post

7 Replies
MK_QSL
MVP
MVP

=SUM({<Product = p({1<Shop = {'S1'}>}Product)>}[Sales Quantity])

Anonymous
Not applicable
Author

Hi Manish,

Thx for quick reply!

How about if there is not only one shop has Product A?

ProductShopSales Quantity
AS12
BS25
CS11
DS17
AS23
CS33
BS32
BS41
CS41

Result should be 2+1+7+3+5 =18

Sum the quantity of shop S1 and S2 because only these two shop have Product A

Best Regards,

Louis

MK_QSL
MVP
MVP

I didn't get your logic. Please explain..

MK_QSL
MVP
MVP

=SUM({<Shop = {'S1','S2'}>}[Sales Quantity])

Anonymous
Not applicable
Author

Hi Manish,

I would like to sum all the quantity of those shops if those shops have the Product A.

In table above,

Shop S1 and S2 have the Product A, therefore sum all the quantity of these two shops.

Best Regards,

Louis

MK_QSL
MVP
MVP

=SUM({<Shop = p({1<Product = {'A'}>}Shop)>}[Sales Quantity])

Anonymous
Not applicable
Author

Thx! It Works