Jump to content
We've recently updated our Privacy Statement, available here ×

Discrepancies in Division Formula


justin.watts

Recommended Posts

Hello,

I have a division formulat that is causing some discrepancies in the final calculation.  Here is the formula:

$V{GroupByAdvAcadCount}.divide($V{LocationStuCount},5,RoundingMode.HALF_UP).multiply(new BigDecimal(100))

I'm basically getting the percentage a group at each row.  For 2 distinct groups (2 different rows in the report) I have 284 for $V{LocationStuCount} and 49 for $V{GroupByAdvAcadCount} for both rows/groups.  However, the final calculation brings back 17.75% for one group and 17.25% for the other group.  How is this possible if the numerator and the denominator are the same for both groups?  Both should be 17.25%.  Does the formula need to be adjusted in any way?

I've had this happen a few times whenever I'm using division with 2 different groups and the reset types are for different groups.  Is there any way around this?  It only happens when I have multiple rows for a group.

 

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...