通用查询计算字段

时间:2019-08-23 21:57:29

标签: acumatica acumatica-kb

您是否可以仅粘贴先前计算字段中的公式以创建新的计算字段?我有一个按商品类分组的查询,在该商品上我创建了一个计算字段,该字段显示了从该商品类中获得的毛利润,我将此公式粘贴到了新字段中,然后将其放在总销售额上以按以下方式计算利润百分比类别。这不会产生预期的结果,是否有特定原因?这是两个计算字段:

Gross Margin in $ = iif([FMFeeDraw.UsrFMFee]>0,([FMFeeDraw.UsrFMFee]*.01)*[ARTran.CuryExtPrice],([ARTran.CuryExtPrice]-([ARTran.UnitCost]*[ARTran.Qty])))

Broken Formula = =iif([FMFeeDraw.UsrFMFee]>0,([FMFeeDraw.UsrFMFee]*.01)*[ARTran.CuryExtPrice],([ARTran.CuryExtPrice]-([ARTran.UnitCost]*[ARTran.Qty])))/[ARTran.CuryExtPrice]

从头开始重建公式,分别测试其中的一部分,等等。

Gross Margin in $ = iif([FMFeeDraw.UsrFMFee]>0,([FMFeeDraw.UsrFMFee]*.01)*[ARTran.CuryExtPrice],([ARTran.CuryExtPrice]-([ARTran.UnitCost]*[ARTran.Qty])))

Broken Formula = =iif([FMFeeDraw.UsrFMFee]>0,([FMFeeDraw.UsrFMFee]*.01)*[ARTran.CuryExtPrice],([ARTran.CuryExtPrice]-([ARTran.UnitCost]*[ARTran.Qty])))/[ARTran.CuryExtPrice]

expected: 91.55/284.86 = .3214
Actual: 91.55/284.86 = .8116

0 个答案:

没有答案