Forum Discussion
Need help. Pivot table average adding decimal places to whole number
I over complicated the ask above. Here is the simple version: I am using a pivot table to compute the average of a list of whole number ratings 1-5. The pivot table average is returning fractional values so rather than 5, returning 4.63 for example.
Cheryle2175I guess this is a matter of number formatting. Assuming that the ratings are in the Value area of the PT, and you have set the action to "Average" (i.e. not Sum or Count, for example). Here you can also change the number format. Set it to a number with 0 (zero) decimals. In your case, the real average is still 4.63 but it will show as 5.
- Cheryle2175Apr 08, 2020Copper Contributor
Riny_van_Eekelen Yes thank you I have updated the Average to zero decimal places. The table displays zero decimal places, the graph label displays zero decimal places. However, the actual graph of the value the bar illustrates multiple decimal place values. So for example two bars with label of "4" are different heights. See the attached example.
- Riny_van_EekelenApr 09, 2020Platinum Contributor
Cheryle2175 Interesting problem, but I haven't been able to solve it within the pivot table/chart. Tried Calculated Fields but that didn't do what I had in mind. A work-around could be to create a "helper" table that picks-up values from the pivot table and rounds these. Then, you create your chart from that helper table with rounded values. The attached workbook contains an example. Not sure if this is feasible or acceptable for you, though.
- Cheryle2175Apr 09, 2020Copper Contributor
Riny_van_Eekelen Thanks, surprising their is not a way to control the average summarize value output.