Calculated field in Pivot

PATSYS

Well-known Member
Joined
Mar 12, 2006
Messages
1,749
I have the below data (sorry I can't convert to html, it says "Error:1004")

Region__ Model__ Revenue
North__ A__ 10
West__ B__ 11
South__ C__ 12
South__ D__ 13
South__ A__ 14
East__ A__ 15
East__ B__ 16

And I created a pivot that looks like this (this one can be coverted to html):
Book2
ABCD
1Data
2ModelSumofRevenueSumofCost
3A390
4B270
5C120
6D130
7GrandTotal910
Sheet2


The "Cost" field is a calculated field, with the follwing formula:

Code:
= IF(Model ="A",Revenue *0.8,IF(Model ="B",Revenue *0.7,IF(Model ="C",Revenue *0.6,IF(Model ="D",Revenue *0.5))))

So, can somebody tell me why is it returning zero values?

Thanks
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

Forum statistics

Threads
1,141,227
Messages
5,705,142
Members
421,380
Latest member
Nuwan Sanjeewa Aponso

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
Top