功能上的 Spotfire

Spotfire Over Function

我想知道为什么以下 OVER 函数导致我的 "complete" 项目仍然显示为 "pending"

第 1 步计算列:

case  
WHEN ([Job]="A") AND ([Sample]="A") AND ([Test]="A") THEN "Complete"
Else "Pending"
END

步骤 2 计算列:

Max(
case  
when [LIMS Pending_Complete]~="LIMS Pending" then 
     "LIMS Pending" 
when [LIMS Pending_Complete]~="LIMS Complete" then 
     "LIMS Complete"
end) OVER ([Batch Number])

Link to desired data

@JQA - 据我了解你的问题,我认为你试图显示每个批号在 'Pending_Complete' 列中重复次数最多的状态。如果是这样的话,下面的过度表达应该会给你结果。

MostCommon([Pending_Complete]) over ([Batch Number])

Table:

如果这不是您正在寻找的解决方案,请告诉我,以便我改进它。

您正在寻找的数据被错误过滤,下面的计算是针对整个数据集,而不是基于您的过滤值。

对 pending complete 列和 over 列使用以下自定义表达式时,结果正确。

PorC 柱

case  
WHEN ([Job]="A") AND ([Sample]="A") AND ([Test]="A") THEN "Complete"
Else "Pending"
END

超过列

Max(
case  
when [PorC]~="Pending" then 
     "LIMS Pending" 
when [PorC]~="Complete" then 
     "LIMS Complete"
end) OVER ([Batch])

将 over 函数应用于过滤值
案例
当 ([Column 1]="Label 1") or ([Column 1]="Label 2") then Max([PoC]) over ([Batch]) 结束