Calculated Field Coming Back as Zero

biotbravo

New Member
Joined
Oct 27, 2023
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hello and thank you for reviewing this thread. I am trying to insert a calculated field that shows the on time performance of shipments. I am pulling from a table that shows the tracking number the shipping lane I want to analyze and the OTP ( ontime performance ) code. I am inserting a pivot table and choosing the OTP status field, Tracking number count, and inserting a pivot table. The calculation I am putting for the pivot table is the OTP field divided by the count of tracking numbers and I am getting a zero for the calculation instead of a percentage. For example, in the last row of average of fields the cell should be the calculation of 7 / 11 = 64%. Any ideas of what I am doing wrong?
 

Attachments

  • Screenshot 2024-02-05 175935.jpg
    Screenshot 2024-02-05 175935.jpg
    73.2 KB · Views: 6

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
For your average column, what are the settings you currently have? I got your expected with these settings:
1707175107009.png
 
Upvote 0
Thank you so much for your response. I am still not getting the results you are getting but it is what I need to get. Can you view my selections in the image I uploaded?
 

Attachments

  • Screenshot Selection Examples.png
    Screenshot Selection Examples.png
    126.2 KB · Views: 9
Upvote 0
My "average" field in the ∑ values section is set up as shown in my screenshot above, and based on "OTP Status" (I achieved the same results with "Tracking number"). Your designated "Sum of average" field may be part of the problem. Is that the result of your custom calculated field formula (dividing one count by another) rather than by the total? Try removing that and just working within the ∑ values section.
1707237793654.png


Yours:
1707237843346.png

{edited grammar for clarity)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,956
Members
449,096
Latest member
Anshu121

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