SUM(case when{type} = 'Work Order Issue' then {qua...
# suiteanalytics
s
SUM(case when{type} = 'Work Order Issue' then {quantity} else 0 end) -SUM(case when{type} = 'Work Order Close' then -{quantity} else 0 end) is this formula correct? it is not adding for some reason
This is from the SuiteAnswer • Summary Type | Maximum • Field | Formula (Numeric) • Formula | SUM(case when {type} = 'Work Order Issue' then {quantity} else 0 end) - SUM(case when {type} = 'Work Order Close' then -{quantity} else 0 end) • Formula (Numeric) | not equal to • Vale | 0
k
i'd probably just do this
sum(decode ({type},'Work Order Issue',nvl({quantity},0),'Work Order Close',-nvl({quantity},0),0))
👍 1