This is missing the join to and division by the grand total. That is necessary in order to make the running sum a percentage contribution. And I left off the multiplication of that result by 100 before the division by the number of buckets.
In your sample you order by NUMOF? rather than QTY_SOLD.
This is missing the join to and division by the grand total. That is necessary in order to make the running sum a percentage contribution. And I left off the multiplication of that result by 100 before the division by the number of buckets.
In your sample you order by NUMOF? rather than QTY_SOLD.