You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何在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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.06 03:00:56