Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
madnanansari
Creator
Creator

Nested sales

We are working on a Sales Application where the transaction table has the following information:

 

Date, Item, Customer, Qty, Sales Amount

 

We are tracking sales on customer by customer basis. 

Let say if we select a customer A, and he is buying Item X, Y, Z. The requirement is to see the sales of all those customers buying the items X, Y, Z.

 

How I can achieve this?

Labels (1)
1 Solution

Accepted Solutions
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

sum({<Customer=, Item=P(Item)>}Qty)

Will show customers buying the same items as the selected customer, but the sum will be limited to the items associated with selected customer. 

If you want to sum all products for the customers associated with the items, then try something like:

sum({<Customer=P({<Item=P(Item), Customer=>} Customer)>}Qty)

-Rob
http://masterssummit.com
http://qlikviewcookbook.com
http://www.easyqlik.com

View solution in original post

1 Reply
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

sum({<Customer=, Item=P(Item)>}Qty)

Will show customers buying the same items as the selected customer, but the sum will be limited to the items associated with selected customer. 

If you want to sum all products for the customers associated with the items, then try something like:

sum({<Customer=P({<Item=P(Item), Customer=>} Customer)>}Qty)

-Rob
http://masterssummit.com
http://qlikviewcookbook.com
http://www.easyqlik.com