Forum Discussion
Need help. Pivot table average adding decimal places to whole number
Cheryle2175 Difficult to follow what you are trying to achieve, but your formula seems to return the NUMBERVALUE of texts varying from "1", "2","3","4" and "5". Why not just skip the "numbervalue" and use the values 1, 2, 3, 4 and 5 in your formula to begin with?
Perhaps you can upload a sample of your workbook with the PT in it so that we can see how your formula affects the PT.
- Cheryle2175Apr 07, 2020Copper Contributor
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.
- Riny_van_EekelenApr 08, 2020Platinum Contributor
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.