Я пытаюсь произвести расчет в 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
Может кто-нибудь мне здесь поможет. Спасибо.
Это закрыто. Только что внес некоторые изменения в формулу, и она уже работает.
просто добавлено * 100. Сумма (случай, когда [wip] = 1, затем 1 else 0 конец) / Sum ((случай, когда [fpassed] = 1, затем 1 else 0 конец) * 1.0 * 100) * 0.85)
если вы опубликуете свое решение, оно может помочь другим людям в будущем :)