Discussions
CASE statement in Saved Search results field question
I have a custom item field that represents a divisor to go from the Purchasing units back to eaches. I am doing this as I cannot find visibility to the Unit of Measure table data.
My custom field (DIVISOR) is Integer and is either NULL or contains a number. What I am trying to do is to create a column that says if the field DIVISOR is greater than 0 use that number, Else use 1
CASE {divisor} WHEN > 0 THEN {divisor} ELSE 1 END
Would one of you saved search experts mind pointing me in the right direction?
As an FYI my next step is to embed this into another formula to divide the Purchase Price by this divisor to get unit costs but I need to take baby steps...
John Cirocco
Sr. NetSuite Administrator