Skip to main content
Answer

How to calculate and sum service order profit percentage.

  • June 9, 2023
  • 1 reply
  • 170 views

I have a GI with the results grid shown below. 

Everything works, except the GP% calculation. I started with trying to sum the cost and price on the service order details by service order number. I relate back to the service order to use the “OrderDate” as a filter against “fromdate” and “todate” parameters.

I get the below result from the query.

The difference calculation works. How can I calculate the “Difference/Ext.Price”  as the %Profit in the last column?

 

Regards

Wayne

Best answer by aaghaei

It is ONE of the known limitations of GI. It doesn’t take calculated result to perform math on it. It performs the math on each record before aggregation. What you need is achievable by customization only and creating a projection DAC. 

1 reply

aaghaei
Captain II
Forum|alt.badge.img+10
  • Captain II
  • Answer
  • June 10, 2023

It is ONE of the known limitations of GI. It doesn’t take calculated result to perform math on it. It performs the math on each record before aggregation. What you need is achievable by customization only and creating a projection DAC.