I'm not able to write the parameter in the data set like I have with two non-calculated parameters. If I'm going about this the wrong way any help is greatly appreciated to get me on the right track.
Data Set Query
SELECT
Inmast.fpartno
, inmast.fdescript
, inmast.fonhand
, inmast.fnonnetqty
, inmast.fcstscode
, inmast.fsource
, inmast.fprodcl
, inprod.fpc_desc
, inmast.fsafety
, inmast.fbook
, inmast.fonorder
, inmast.fproqty
, inmast.freordqty
From inmast
inner join inprod
on inmast.fac + inmast.fprodcl = inprod.fac + inprod.fpc_number
Where inmast.fcstscode = @Code and inmast.fsource = @Source
Calculated Expression
(inmast.fonhand
+ inmast.fonorder
+ inmast.fproqty
- inmast.fbook
- inmast.fnonnetqty
- inmast.fsafety < 0
) = @CalculatedExpression