Creating a Measure to Divide 2 Columns in a Pivot Table

ziggle

New Member
Joined
May 9, 2007
Messages
16
Hi folks,

I am looking at some oat production data from the USDA. I have been able to compute yield (=Production/Harvest acres) using calculated fields and in PQ. It seems like I should be able to compute the yield using a measure, but I have been stumped. When I am in the measures dialog, I see the type as a column option, but not harvested or production. How do I get access to these items so I can perform the division.

Here is an excerpt from the table. As I said, I can compute the yield a couple of ways, but I am wondering how to use a measure to compute it.
<table>
<tr>
<td>Sum of Value</td><td colspan="4">Type</td>
</tr>
<tr>
<td>State</td><td>Harvested</td><td>Planted</td><td>Production<td>Yield</td>
</tr>
<tr>
<td>North Dakota</td><td>105</td><td>300</td><td>8610<td>82</td>
</tr>
<tr>
<td>South Dakota</td><td>95</td><td>290</td><td>7790<td>82</td>
</tr>
<td>Minnesota</td><td>105</td><td>180</td><td>6195<td>59</td>
</tr>
</table>
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.

Forum statistics

Threads
1,223,894
Messages
6,175,250
Members
452,623
Latest member
Techenthusiast

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