heatherrink
New Member
- Joined
- Oct 29, 2012
- Messages
- 5
Hi there
I have a question please -
I have the following data in powerpivot - Products prescribed by individual practices roll up to Regions in a hierarchy. I have inserted calculated columns to get the subtotals for all the products within a region through
=CALCULATE(SUM([prescriptions]),FILTER('data','data'[Regions]=EARLIER('data'[Regions])))
However is there a way to get the subtotal by individual product within the region? I tried
=CALCULATE(SUM([prescriptions]),(FILTER('data','data'[Regions]=EARLIER('data'[Regions])),(FILTER('data',data[Product]=EARLIER('data'[Product]))))), but didnt get any success.
Could you help me please?
Thanks very much!!
I have a question please -
I have the following data in powerpivot - Products prescribed by individual practices roll up to Regions in a hierarchy. I have inserted calculated columns to get the subtotals for all the products within a region through
=CALCULATE(SUM([prescriptions]),FILTER('data','data'[Regions]=EARLIER('data'[Regions])))
However is there a way to get the subtotal by individual product within the region? I tried
=CALCULATE(SUM([prescriptions]),(FILTER('data','data'[Regions]=EARLIER('data'[Regions])),(FILTER('data',data[Product]=EARLIER('data'[Product]))))), but didnt get any success.
Could you help me please?
Thanks very much!!