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
Suitestallion
11/09/2020, 4:20 PM
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
KevinJ of Kansas
11/09/2020, 5:25 PM
i'd probably just do this
sum(decode ({type},'Work Order Issue',nvl({quantity},0),'Work Order Close',-nvl({quantity},0),0))