Question

How to round of method remove to division calculation in Report Designer

  • 8 November 2023
  • 13 replies
  • 165 views

Userlevel 1
Badge

Example: Total value is 30, Sales is 7. so when i check percentage calculation, Percentage  = (sales/total)*100. but output shown is 0. how to check percentage?


13 replies

Userlevel 7
Badge +12

Can you show me the formula on the Report. It this a Total on the Report or on each line would need to see it to advise as 0 implies you must have one of the fields wrong

Userlevel 1
Badge

$TotalNumber = 7

$TotalGood = 30

=($TotalNumber/$TotalGood)*100

Userlevel 1
Badge

its show 0

Userlevel 7
Badge +12

I would need to see it on the report itself as your formula is correct but where is the TotalNumber and TotalGood getting its value from as in the lines on the report. I suspect these are not getting their values from the detail section?

Userlevel 1
Badge

The reportfooter Total line Variables are working. then when i give $totalnumber/$totalgood output coming to 4, not showing to 4.28 , its take roundoff, so i need proper value

Userlevel 1
Badge

This is report output

Userlevel 1
Badge

I would need to see it on the report itself as your formula is correct but where is the TotalNumber and TotalGood getting its value from as in the lines on the report. I suspect these are not getting their values from the detail section?

i get grouping tab, see my screenshot under total have show correctly

Userlevel 7
Badge +12

Have you tried =[$TotalGood]/[$TotalNumber] i dont have the report to try it on

Userlevel 1
Badge

Have you tried =[$TotalGood]/[$TotalNumber] i dont have the report to try it on

No still show to 0.00

Userlevel 5
Badge +1

Hi,

I have a question, why are you using the “POW” function? Do you need the number to be squared? Also, I would like to see the “format” atrribute value for that field.

Userlevel 1
Badge

Hi,

I have a question, why are you using the “POW” function? Do you need the number to be squared? Also, I would like to see the “format” atrribute value for that field.

No need to Squared. just i want 4/25 value is 0.16, but its show 0. thats is the problem

Userlevel 7
Badge

Hi @prabhu83 were you able to find a solution? Thank you!

I’m also experiencing the same issue with formulas seemingly not calculating correctly. I’m building a custom time summary report that tracks billable hours, non-billable hours, and time off for each employee:
 

   

Here is an example where we fetch the relevant fields, we then divide the [35 billable hours ] / [43 total hours] and expect to see 81.4%. Instead, we see 0% Billable. Correct formula below for Current Period Billable % column:

(we need to treat time off as separate from total hours for an idiosyncratic reason elsewhere in the report, so apologies for the confusing naming convention). 

 

Interestingly, when I eliminate the “time off” from the total hours, then I correctly see the expected answer of 100% (35 hours / 35 hours) . This tells me somehow Acumatica is either treating this division calc as binary? or maybe has some severe rounding logic going on under the hood? 
 

 

 

 

Has anyone else ever experienced this? Any thoughts on what I’m doing wrong?

 

 

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved