Skip to main content

Rollup Math not working as expected

  • March 19, 2019
  • 2 replies
  • 50 views

Forum|alt.badge.img+3

I have a rollup column in an aggregate table where I want to get a percentage. In the original record, I am recording 1, 0, or empty.
The basic components work … SUM(values) returns “6” … COUNTA(values) returns “8”
But … SUM(values)/COUNTA(values) returns “1”

Is this combined function not supported? or am I missing something ?

This topic has been closed for replies.

2 replies

Justin_Barrett
Forum|alt.badge.img+21

Check the formatting of your field that’s doing the math between the SUM and the COUNTA. It might default to an integer because the source values are both integers, which would explain why it’s rounding 6/8 up to 1. Set it to a decimal and fiddle with the precision to your liking, and it should give you the percentage you seek.


Forum|alt.badge.img+3
  • Author
  • New Participant
  • March 21, 2019

Check the formatting of your field that’s doing the math between the SUM and the COUNTA. It might default to an integer because the source values are both integers, which would explain why it’s rounding 6/8 up to 1. Set it to a decimal and fiddle with the precision to your liking, and it should give you the percentage you seek.


Operator error … I didn’t look at the formatting option and it was being forced to an integer of “1” … all better now.

Thanks!