Qlik Community

Qlik Sense App Development

Discussion board where members can learn more about Qlik Sense App Development and Usage.

Announcements
QlikWorld 2020: Join us May 11 - 14, 2020 in Phoenix, AZ. Register early and save $400. Learn More
madnanansari
Contributor

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
MVP & Luminary
MVP & Luminary

Re: Nested sales

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
MVP & Luminary
MVP & Luminary

Re: Nested sales

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