When I created a Calc field, there is not data in the field. I am linking Order Rel and Ship Dtl, so in the cases that we have not shipped anything, there is no data.
My calculated field: OrderRel.OurReqQty - ShipDtl.OurInventoryShipQty, so when 100 - NULL = blank. How can I get it so that 100 - NULL = 100
case
when ShipDtl.OurInventoryShipQty is null then OrderRel.OurQty
when ShipDtl.OurInventoryShipQty is not null then OrderRel.OurQty-ShipDtl.OurInvenoryShipQty
end
Perhaps I should of stated that I am trying to do this in a BAQ. I understand about the Total as well.
I get a syntax error using the case statement.
case
when ShipDtl.OurInventoryShipQty Is Null then OrderRel.OurReqQty
when ShipDtl.OurInventoryShipQty Is Not Null then OrderRel.OurReqQty - ShipDtl.OurInventoryShipQty
end
Also tried
case
when Is Null (ShipDtl.OurInventoryShipQty) then OrderRel.OurReqQty
when Is Not Null (ShipDtl.OurInventoryShipQt) then OrderRel.OurReqQty - ShipDtl.OurInventoryShipQty
end