PiVot Table - Calculated field

William

New Member
Joined
Nov 16, 2002
Messages
6
Hello,

imagine I have 5 Purchase Orders, to be made in Country AUS and US and below qty's.

Country PO Qty
AUS 1 10
US 2 50
AUS 3 80
AUS 4 20
US 5 45

I now need a pivot table showing Country in the Row Area and the following Data fields:
* # of PO's
* Qty of Po's
* Average qty/PO

I am at a loss how to get the result of the
3rd field. I am using the calculated field, but since I need to COUNT the # of Po's, I need help.

Thanks,

William
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Hi,
Did you tried the standard avarage funtion for a pivot table??. For example you drag a row name into "data" in the layoutwizard.
You can dubble click in the data, for example the sum of something and change it in average.
 
Upvote 0
'Avg Qty/PO' is a Calculated Field defined as...

=Qty/PO
Book1
ABCDEFGHIJ
1CountryPOQtyData
2AUS110CountryCountofPOSumofQtyAvgQty/PO
3US250AUS311013.75
4AUS380US29513.57142857
5AUS420GrandTotal520513.66666667
6US545
7
8
Sheet1

This message was edited by Mark W. on 2002-12-04 10:52
 
Upvote 0
Thanks Mark,

but this doesn't give me the correct calculation.
eg for Aus Av= 110/3 = 36.66 but your answer = 13.75

Regards,

William
 
Upvote 0
On 2002-12-04 22:23, William wrote:
Thanks Mark,

but this doesn't give me the correct calculation.
eg for Aus Av= 110/3 = 36.66 but your answer = 13.75

Regards,

William

Hi William:

You may have to delineate each of the POs as a single (one) PO

see the following simulation ...
y021204h1.xls
ABCDEFG
1CountryPOQtyCountryDataTotal
2Aus110AusSumofQty110
3US150CountofPO3
4AUS180SumofAvgQtyPerPO36.67
5AUS120USSumofQty95
6US145CountofPO2
7SumofAvgQtyPerPO47.5
8TotalSumofQty205
9TotalCountofPO5
10TotalSumofAvgQtyPerPO41
Sheet2
</SPAN>

Does it help?
 
Upvote 0
On 2002-12-04 22:23, William wrote:
Thanks Mark,

but this doesn't give me the correct calculation.
eg for Aus Av= 110/3 = 36.66 but your answer = 13.75

Regards,

William

William, it's always helpful to provide the answer you're seeking in your original post. I merely implemented your arithmetic expression, qty/PO, which suggested that the 'PO' field was a count rather than an id.

So... why didn't you use the suggestion provided by Lucien. A Calculated Field is not necessary.
 
Upvote 0
Hello Everybody,

Thanks Lucien, Yogi and Mark. All your proposals work. I guess I was blinded/obsessed by trying to find a solution through the calculated Field option, while indeed the solution was right at hand in the standard pivot table functionality.

Regards,

William
 
Upvote 0

Forum statistics

Threads
1,214,954
Messages
6,122,461
Members
449,085
Latest member
ExcelError

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