Am trying to get this to work in a fact, but syntax is wrong someplace. The object of this is to add logic for the divide by 0 error - can all this be done in one fact? thanks
ApplySimple("([ORDER_COST_GROSS] / CASE WHEN #0 = 0 THEN NULL ELSE #0 END",[ORDER_QTY]) * [RECEIPTS_QTY])
ApplySimple("([ORDER_COST_GROSS] / CASE WHEN #0 = 0 THEN NULL ELSE #0 END",[ORDER_QTY]) * [RECEIPTS_QTY])