如果自定义表达式在公式中包含关键字with,我如何相乘



我正在尝试在Spotfire中实现计算。我正在尝试下面的表达式,但它给了我一个不同的结果。

formula:
Sum(case  when [wip]=1 then 1 else 0 end) / Sum((case  when [fpassed]=1 then 1 else 0 end) * 1.0) * 0.85) + (
Sum(case  when [recover]=1 then 1 else 0 end) / Sum((case  when [fpassed]=1 then 1 else 0 end) * 1.0) * 
(Sum(case  when [fpassed]=1 then 1 else 0 end) / Sum((case  when [total_input]=1 then 1 else 0 end) * 1.0))) as [PROJECTED YIELD]

VALUES:
88.73=  Sum(case  when [wip]=1 then 1 else 0 end) / Sum((case  when [mlb_passed]=1 then 1 else 0 end) * 1.0) * 0.85) + (
Sum(case  when [fg_recovery]=1 then 1 else 0 end) / Sum((case  when [mlb_passed]=1 then 1 else 0 end) * 1.0)
54.03 = Sum(case  when [fpassed]=1 then 1 else 0 end) / Sum((case  when [total_input]=1 then 1 else 0 end) * 1.0))

47.9 should be the projected yield but the result coming from the calculation is 49.0

有人能在这里帮我吗。非常感谢。

此操作已关闭。刚刚对公式做了一些调整,它已经起作用了。

最新更新