如何在NetSuite保存搜索公式中添加位置维度计算填充率
填充率计算问题

以下公式可正常计算可发货值/总计的Fill Rate %:
sum(case when ({quantitycommitted} is not null AND ({quantity} - {quantitypacked}) >0) then {quantitycommitted}*{rate} ELSE 0 end)/NULLIF(SUM(({quantity} - {quantityshiprecv}) * {rate}),0)
但添加交易位置筛选后,得到的填充率是相对于全局总计而非该位置的总计:
sum(case when ({quantitycommitted} is not null AND ({quantity} - {quantitypacked}) >0) AND ({location} = 'Norcross') then {quantitycommitted}*{rate} ELSE 0 end)/CASE WHEN (({location} = 'Norcross') THEN NULLIF(SUM(({quantity} - {quantityshiprecv}) * {rate}),0) END)

尝试了多种包含location字段的写法,均未解决问题。
内容的提问来源于stack exchange,提问作者MMariani
相关产品推荐
相关产品推荐

