Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
Saved Search with formula comparing results to that of another formula
I've created a saved search that calculates the gross margin of a certain group of products and divides it by a certain group of applicable transactions.
I'm trying to figure out how to divide the results of one formula by the other so I can see the overall gross margin per applicable transaction.
Gross Margin (formula sum)
CASE WHEN {account} = '-Accessory' OR {account} = '-Aftermarket and OEM' OR {account} = 'Bluetooth' THEN {amount}-{cogsamount} ELSE 0 END
# Applicable Transactions (formula sum)
CASE WHEN {custcolphone_act_type} = 'New Activation' OR {custcolphone_act_type} = 'Upgrade' THEN {quantity} ELSE 0 END
What I need to do is create another column that divides the gross margin by the # of applicable transactions. This is easy to do in a scorecard but I need to include it as a column in my saved search.