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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Trying to create a report showing percentage of customers buying a SKU by business chain

As the title says, I am trying to create a report that looks something like this:

SKU1SKU2SKU3
business chain Acases200130140
(total 5 customers)number of buying customers423
% buying804060
business chain Bcases190210120
(total 8 customers)number of buying customers646
% buying755075
business chain Ccases300350500
total 10 customersnumber of buying customers367
% buying306070


Clearly most of it is straightforward. The bit I am having problem with is the % buying. The calculation needs to be the number of customers buying a SKU divided by the total number of buying customers for the business chain. Has anyone successfully tackled this sort of problem before?

Thanks in advance.

1 Solution

Accepted Solutions
Not applicable
Author

What is your formula for number of buying customers?

If it's something like Count(Customers), then use:

Count(Customers)/Count(TOTAL <BusinessChain> Customers)


The TOTAL in the denominator means to ignore all dimensions. The two fields in the brackets mean to respect that dimension. Basically, that gives you the number of buyers divided by the total number of customers for that particular BusinessChain (or whatever your Business Chain field is called).

View solution in original post

2 Replies
Not applicable
Author

What is your formula for number of buying customers?

If it's something like Count(Customers), then use:

Count(Customers)/Count(TOTAL <BusinessChain> Customers)


The TOTAL in the denominator means to ignore all dimensions. The two fields in the brackets mean to respect that dimension. Basically, that gives you the number of buyers divided by the total number of customers for that particular BusinessChain (or whatever your Business Chain field is called).

Not applicable
Author

wow. I did not know that! (obviously). Very nice and very simple. Thank you!