【问题标题】:Spotfire: Calculating the Date Differences between Values in the Same Column which are Group by another ColumnSpotfire:计算同一列中由另一列分组的值之间的日期差异
【发布时间】:2019-10-09 12:24:23
【问题描述】:

我是 Spotfire 的初学者。我制作了一个示例表,如下所示。这就是我想要完成的任务:对于每种类型,我想计算 ACTIVITY 1 START 和 ACTIVITY 3 FINISH 之间的天数差异。

我试图使用 DateDiff 函数,但对如何执行此操作感到困惑,因为我想通过 ACTIVITY 中的值指定 START 和 FINISH。我也相信我将不得不使用 OVER 功能。

Sample Table

【问题讨论】:

    标签: case calculated-columns datediff spotfire intersect


    【解决方案1】:
        #I would write something like : 
    
        DateDiff("day",Min([Start]) over ([Type]),Max([Finish]) over ([Type]))
    

    【讨论】:

      猜你喜欢
      • 2019-09-25
      • 2020-07-19
      • 1970-01-01
      • 2018-09-03
      • 2017-02-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-05-07
      相关资源
      最近更新 更多