Hi @SandyA
The issue is that ARTran.Cost is an unbound field, so it cannot be used in a Generic Inquiry. Instead of referencing this field directly, you need to calculate its value in the GI using the same logic as defined in the DAC attribute:
[PXDBCalced(typeof(Mult<Switch<Case<Where<drCr, Equal<DrCr.debit>>, PX.Data.Minus<decimal1>>, decimal1>, Switch<Case<Where<isTranCostFinal, Equal<False>>, tranCostOrig>, tranCost>>), typeof(decimal))]
So your formula should look as follows:
=IIf([ARTran.TranDate] >= '2025-01-01' And [ARTran.TranDate] < '2026-01-01',[ARTran.CuryTranAmt] - (IIf([ARTran.DrCr] = 'D',-1,1) * IIf([ARTran.IsTranCostFinal] = False,[ARTran.TranCostOrig],[ARTran.TranCost])),0)