```nvl( (sum( case when {transaction.type} = 'Sale...
# suiteanalytics
k
Copy code
nvl(
(sum(
case when {transaction.type} = 'Sales Order' and {transaction.trandate} <= to_date('2019-06-30', 'YYYY-MM-DD') and 
{transaction.trandate} >= to_date('2018-06-30', 'YYYY-MM-DD') 
then {transaction.quantity} else 0 end),0) 
/ 
nullif((round(case when MONTHS_BETWEEN({today}, {custitem_launch_date}) > 12 
then 12 else 
MONTHS_BETWEEN({today}, {custitem_launch_date}) end)), 'New'),0)