Skip to main content
Answer

Remove Unnecessary Zeroes in GI Formula

  • July 10, 2025
  • 7 replies
  • 57 views

Forum|alt.badge.img

I’m attempted to run a formula to find out how long it took to produce 1 item via a production order.

The formula I am using so far is:

=iif([AMMTran.Qty]=0,round(0,0),round([AMProdTotal.ActualLaborTime]/[AMMTran.Qty],2))

But I’m now seeing an infinite number of 0s after the rounding, and I only want to see 2 decimal places worth.

 

Best answer by BenjaminCrisman

You bet! So the schema field option is in the Results Grid of the GI, should be available by default, but if you don’t see it, bring it out from the column configurator (top left cabinet looking button in the grid). The cool thing about using schemas is that you can use ANY table which can be brought into a GI and it doesn’t have to be joined in! So when I bring in the expression from above:

I see the infinite 0’s

For me, probably the first schema I ever used was for ARInvoice.DocBal and so I’ve just always applied this one though there are probably hundreds to choose from throughout the DACs.

Apply the schema:

It’s worth noting that the title of the column will reflect the schema table used, so you’ll need to add a Caption from the Caption column (typically hidden by default)

7 replies

BenjaminCrisman
Acumatica Employee
Forum|alt.badge.img+4
  • Acumatica Support Team
  • July 10, 2025

@SBaldwin Unfortunately the Round() function doesn’t truncate the results, it just rounds decimal places but leaves trailing zeroes. For this you’ll need to apply a schema to the field, one which already has a two decimal precision applied.


Forum|alt.badge.img
  • Author
  • Varsity I
  • July 10, 2025

Can you go into further details? First time applying a schema to a field. Thanks! And that makes absolute sense


BenjaminCrisman
Acumatica Employee
Forum|alt.badge.img+4
  • Acumatica Support Team
  • Answer
  • July 10, 2025

You bet! So the schema field option is in the Results Grid of the GI, should be available by default, but if you don’t see it, bring it out from the column configurator (top left cabinet looking button in the grid). The cool thing about using schemas is that you can use ANY table which can be brought into a GI and it doesn’t have to be joined in! So when I bring in the expression from above:

I see the infinite 0’s

For me, probably the first schema I ever used was for ARInvoice.DocBal and so I’ve just always applied this one though there are probably hundreds to choose from throughout the DACs.

Apply the schema:

It’s worth noting that the title of the column will reflect the schema table used, so you’ll need to add a Caption from the Caption column (typically hidden by default)


Forum|alt.badge.img
  • Author
  • Varsity I
  • July 10, 2025

Oh that is fantastic thank you!!


Forum|alt.badge.img
  • Author
  • Varsity I
  • July 10, 2025

So I attempted this and got an error when the GI was loaded. 

 

 Here is my updated GI :)

 

 


BenjaminCrisman
Acumatica Employee
Forum|alt.badge.img+4
  • Acumatica Support Team
  • July 10, 2025

Huh, that’s really strange. Maybe try a different field? You can check like SOInvoice, FSServiceOrder or maybe something in Banking/Finance like a GL table. There are so many which show just two decimals, but this should certainly work. If the table was customized then that could explain part of it, but generally the error that the given key was not in the dictionary has typically pointed to the site needing a restart or there are customizations which are somehow conflicting.


Forum|alt.badge.img
  • Author
  • Varsity I
  • July 10, 2025

I figured it out! I still had to add the table (even though it didn’t need to be linked)! Thanks ​@BenjaminCrisman