Hello,
I was wondering if it is possible to have a column in calculate based on the fields that are included. For example, if only market is available, I want the % of per capita spending to be divided by the total across all markets, but if I include market and product, have the % spending to be the % of product spending. I know that if I move around the columns I will get what I'm after, but the customer is adamant about having market as the leftmost column.
Thanks!
See example below.
<tbody>
</tbody>
I was wondering if it is possible to have a column in calculate based on the fields that are included. For example, if only market is available, I want the % of per capita spending to be divided by the total across all markets, but if I include market and product, have the % spending to be the % of product spending. I know that if I move around the columns I will get what I'm after, but the customer is adamant about having market as the leftmost column.
Thanks!
See example below.
Market |
<tbody> </tbody> |
<tbody> </tbody> |
<tbody> </tbody> |
<tbody> </tbody> | ||||||
1 |
<tbody> </tbody> | 5 |
<tbody> </tbody> |
<tbody> </tbody> | ||||||
2 | $150.00 | 4 |
<tbody> </tbody> |
<tbody> </tbody> | ||||||
3 | $200.00 | 6 |
<tbody> </tbody> |
<tbody> </tbody> | ||||||
Total |
<tbody> </tbody> | 15 | $30.00 | |||||||
Market | Product | Spending | Population | Spending per Capita | % of Product Total | |||||
1 | A | $40 | 5 |
<tbody> </tbody> | 19.4% | <- E9/sum(E9, E12, E15) | ||||
1 | B | $50 | 5 |
<tbody> </tbody> |
<tbody> </tbody> | |||||
1 | C | $10 | 5 |
<tbody> </tbody> |
<tbody> </tbody> | |||||
2 | A | $50 | 4 |
<tbody> </tbody> |
<tbody> </tbody> | |||||
2 | B | $30 | 4 |
<tbody> </tbody> |
<tbody> </tbody> | |||||
2 | C | $70 | 4 |
<tbody> </tbody> |
<tbody> </tbody> | |||||
3 | A | $125 | 6 |
<tbody> </tbody> |
<tbody> </tbody> | |||||
3 | B | $70 | 6 |
<tbody> </tbody> |
<tbody> </tbody> | |||||
3 | C | $5 | 6 |
<tbody> </tbody> |
<tbody> </tbody> | |||||
Total |
<tbody> </tbody> |
<tbody> </tbody> |
<tbody> </tbody> | |||||||
<tbody>
</tbody>