Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
AnnaM
Contributor III
Contributor III

target setting by using last year's sales % per week

I have been asked to set targets for our sales, by customer and category. Each customer and category has a target and that needs to be divided over the 52 weeks of the year, based on last year. So for the combination customer 1 and category 1, week 1 has 1% of sales, week 2 has 3% of sales based on the sales of the combination customer 1 and category 1 for last year, week x has z% etc. For each customer/category combination I need to get to 100% over the year.

To find the weekly % of sales for 2019 for each customer/category combination I am using: 

sum({<Year={2019}>}NNN_SO)/sum(total Aggr(Sum({$<Year={2019},Customer=,Category=>}NNN_SO), Customer,Category))

but this does not give me the % per customer/category, rather for all of them together. What am I missing?

0 Replies