Divide by a constant in a pivot table

gammaves

New Member
Joined
Mar 20, 2017
Messages
28
Hey everyone,

I've got some basic data below to illustrate what I'm trying to do. Essentially, I have a bunch of dimensions, and they each have revenue associated with them. One of those dimensions is site.
I also have external data that shows the total number of impressions for each site.


SiteAdvertiserRevenue
Site 1Advertiser 1
$1,000​
Site 1Advertiser 2
$2,500​
Site 1Advertiser 3
$2,000​
Site 2Advertiser 1
$3,000​
Site 2Advertiser 2
$1,500​
Site 2Advertiser 3
$1,800​
Site 3Advertiser 1
$1,200​
Site 3Advertiser 2
$1,400​
Site 3Advertiser 3
$2,200​
Total impressions Site 1:
25000
Total impressions Site 2:
30000
Total impressions Site 3:
20000

If I were to pivot the table above, I end up with:

Sum of RevenueColumn Labels
Row LabelsSite 1Site 2Site 3Grand Total
Advertiser 1
1000​
3000​
1200​
5200​
Advertiser 2
2500​
1500​
1400​
5400​
Advertiser 3
2000​
1800​
2200​
6000​
Grand Total
5500​
6300​
4800​
16600​

I want to create a calculated field that, for each site, for each advertiser, divides revenue by the total impressions for that specific site. Is there a way to do that with a calculated field?

So in the example above, for site 1, it would do
B3: 1000/25000
B4: 2500/25000
C3: 3000/30000
etc.
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
With Power Query, joined your two tables.
Then in Power Pivot, created a DAX formula to Divide the revenue by impressions. You can download the workbook at Box
 
Upvote 0

Forum statistics

Threads
1,215,232
Messages
6,123,763
Members
449,120
Latest member
Aa2

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