Compare the sale of store with sale of region

tanquoc0309

New Member
Joined
Aug 16, 2013
Messages
27
Hi all

StoreSaleRegion
A10000N
B20000N
C30000N
D15000S
E19000S

<tbody>
</tbody>

I created pivot table (powerpivot) with slicer Store.

How can I create a calculate in powerpivot that show Average of Region when I filter Store, such as:
When I choose store "A", the formula will show average of region "N"
When I choose store "C", the formula will show average of region "N"

Thanks,
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
One way is to make a calculated column like this

=CALCULATE(AVERAGE(Sheet1[Sale]),FILTER(Sheet1,Sheet1[Region]=EARLIER(Sheet1[Region])))
 
Upvote 0
And as a measure:

Something like this would work:
=IF (HASONEVALUE(Table2[Region]),
CALCULATE(AVERAGE(Table2[Sale]), ALL(Table2), Table2[Region] = VALUES(Table2[Region]))
)
 
Upvote 0

Forum statistics

Threads
1,215,226
Messages
6,123,734
Members
449,116
Latest member
alexlomt

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top