Calculated Field in Pivot Table

Jasmaine86

New Member
Joined
Jul 26, 2023
Messages
10
Office Version
  1. 365
Platform
  1. Windows
Hi There,

I need a calculated field to work out the "completed on time" % in my pivot table.

When i do it manually, my formula is =(D5-B5)/D5.

I want to insert a calculated field but only have it create one extra column with one result.

Thank you,
 

Attachments

  • sample.JPG
    sample.JPG
    137 KB · Views: 20

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
So, isn't that =OnTime/(Failed+OnTime)
 
Upvote 0
Sorry, I was seeing that as 2 fields, not 2 items of the same field. Look at this ... it's more than one extra column, but does the right calculation (added Count to Data Area twice, and having the second one be Field Settings/Show Values As/% of Row Total):
 

Attachments

  • CapPTPct.JPG
    CapPTPct.JPG
    27.5 KB · Views: 9
Upvote 0
Solution
Sorry, I was seeing that as 2 fields, not 2 items of the same field. Look at this ... it's more than one extra column, but does the right calculation (added Count to Data Area twice, and having the second one be Field Settings/Show Values As/% of Row Total):
Thanks Glen. This was helpful. I have played with this format before but was hoping there was a tidier way to transform the data and show the one result.
 
Upvote 0
Thanks Glen. This was helpful. I have played with this format before but was hoping there was a tidier way to transform the data and show the one result.
Well, you could add 2 fields to your data, one for Fail and one for On Time, and then my initial suggestion would work:
 

Attachments

  • CapPTFailOT.JPG
    CapPTFailOT.JPG
    80.3 KB · Views: 11
Upvote 0

Forum statistics

Threads
1,215,095
Messages
6,123,072
Members
449,093
Latest member
ripvw

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