Try this: ```case when max(nvl({quantityshiprecv},...
# suiteanalytics
k
Try this:
Copy code
case when max(nvl({quantityshiprecv},0))>0 THEN SUM({grossamount})/( nullif(COUNT(DISTINCT({fulfillingtransaction.internalid})),0) ) else sum({grossamount}) end