I can't seem to wrap my head around this. I have store level data, and 'Stores Scanning' on the right is a distinct count of the stores scanning for each group by period. You can see in 'Group A' that the store didn't really start the full sell off until Period 2, and then the stores selling was roughly the same for 3 & 4.
What I need to do in the Left table is get a sum of the dollars sold only when that 'Stores Scanning' measure is above a certain threshold for the period. So sum dollars if the number of individual stores scanning for the period is, for example, within 10 stores of the maximum for the 'Stores Scanning' measure across all of the periods for that group. (Which is visualized in the table on the right.)
I've tried several iterations using calculate, summarize, etc, and I just can't get anything to work. I just don't understand how to get the max of the measure for each period, and then use that as a filter.
(Just a little more clarification - for Group A I would want the 'Dollar for only full distro' to be the sum of dollars for only periods 2,3,4, since that is where the distribution was at the fullest. And likewise for each group based on their respective maximum of the measure 'Stores Scanning')
Thanks for looking.
What I need to do in the Left table is get a sum of the dollars sold only when that 'Stores Scanning' measure is above a certain threshold for the period. So sum dollars if the number of individual stores scanning for the period is, for example, within 10 stores of the maximum for the 'Stores Scanning' measure across all of the periods for that group. (Which is visualized in the table on the right.)
I've tried several iterations using calculate, summarize, etc, and I just can't get anything to work. I just don't understand how to get the max of the measure for each period, and then use that as a filter.
(Just a little more clarification - for Group A I would want the 'Dollar for only full distro' to be the sum of dollars for only periods 2,3,4, since that is where the distribution was at the fullest. And likewise for each group based on their respective maximum of the measure 'Stores Scanning')
Thanks for looking.
Excel 2010 | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | |||
1 | Group | Dollars | Dollars for only full distro | Stores Scanning | Period | ||||||||||||
2 | A | $57,826 | Group | 9 | 10 | 11 | 12 | 13 | 1 | 2 | 3 | 4 | |||||
3 | B | $1,103 | A | 3 | 4 | 5 | 4 | 5 | 5 | 88 | 91 | 90 | |||||
4 | C | $21,503 | B | 17 | 47 | 59 | 61 | 55 | 62 | 72 | 71 | 70 | |||||
5 | D | $278 | C | 28 | 29 | 29 | 29 | 30 | 32 | 34 | 36 | 38 | |||||
6 | Grand Total | $267,627 | D | 2 | 23 | 24 | 24 | 24 | 24 | 24 | 24 | 24 | |||||
Sheet1 |