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

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
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,214,632
Messages
6,120,655
Members
448,975
Latest member
sweeberry

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