Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Effective (AC) Distribution calculation??

Hi All,

Seems like no one has had this question before, but a VERY valuable metric in CPG analysis is effective/AC distribution. I've only seen it calculate automatically in Nielsen/IRI.

Basically the calculation is this:

Total Sales of Stores that Carry Item / Total Sales of All Stores *100 (or show as a percentage)

I'll illustrate below:

StoreProduct 1 $SalesTotal Store Sales
1$100$1000
2$50$200
3-$300
4-$500
Total$150$2000

The product has sales, and therefore has distribution, at stores 1 & 2. Therefore the numerator is $1000+$200 = $1200

For our denominator we use all store sales in this universe. Therefore the denominator is $1000+$200+$300+$500 = $2000

So, our Effective (AC) Distribution is:

$1200/$2000 = 60 (or 60%)

So, the question is, how can I determine a qliqview formula when I want to show the effective distribution for each item:

Product$SalesNumber of Store ListedEffective Distribution
Product 1$150260

Any help would be greatly appreciated!

Accenture couldn't figure it out, hopefully you guys can make me look like a boss over here

15 Replies
marcus_sommer

You will need totals within your expressions, maybe something like this:

sum(total <Store> Sales) / sum(total Sales)

What it is and how it worked see:

What does the TOTAL qualifier do?

Totals in Charts

- Marcus

Not applicable
Author

yes, that was my immediate reaction, however what this does is gives all store sales, not just the stores that carry the product.

krishna_2644
Specialist III
Specialist III

Hi Laura.

I guess you  can be the boss.

And yes , the formulae might be something like this:

Sales : Aggr(Sum(Product1_$Sales),Product)

number of Stores : Count({$<Product1_$Sales = {''}>}Store)

effective dist:

num(Aggr(Sum({$<Product1_$Sales -= {''}>}Total_Store_Sales),Product) / Aggr(Sum(Total_Store_Sales),Product),'##%')

See attached.

Hope that helps you

Capture1.PNG

Not applicable
Author

do you mind attaching you QVW file? omg we are so close.

krishna_2644
Specialist III
Specialist III

i have already attached it.

Not applicable
Author

you're right sorry didn't show up in this inbox view.

okay, I get what you did above, only problem is that my data isn't laid out that way so simply.here is an example of data that would be using:

 

StoreProductSales
1Product 14
1Product 25
1Product 36
1Product 47
1Product 58
1Product 69
1Product 710
1Product 811
2Product 11
2Product 32
2Product 43
2Product 54
2Product 65
2Product 76
2Product 8

7

So, you can see that if i want effective distribution of Product 2 it would be:

Sum of sales for Store 1 (because it is listed there and has sales of 5)

/

Sum of all stores (which i know would just be sum(total Sales))

It's the numerator i'm having trouble with.

Kushal_Chawda

Please see the attached

krishna_2644
Specialist III
Specialist III

hopefully this should do.

Not applicable
Author

I totally dig where you guys are going with this. And feel better about my own skills knowing that this actually is very difficult.

Both of you gave me the same result, essentially calculating the share of the product within the total sales:

   

Product$SalesNumber of Stores ListedEffective Distribution
Product1526%
Product2516%
Product3829%
Product410211%
Product512214%
Product614216%
Product716218%
Product818220%

What i'm looking for is this:

Product$SalesNumber of Stores ListedEffective Distribution
Product152100%
Product25168.1%
Product382100%
Product4102100%
Product5122100%
Product6142100%
Product7162100%

The reason Product 2 has a distribution of 68.1% is this it only has sales in store 1.

The sum of store 1 sales for all products is 60, the sum of all sales is 88. therefore 68/88 = 68.1%

it's a crazy complicated metric, totally get it.