Spotfire:如何根据实体和日期获取列中的第一个和最后一个值?

Spotfire: how to get the First and last value in a column based on entity and date?

我有一个简单的 table,其中包含两个与日期关联的实体和值。 我想根据历史日期提取第一个和最后一个值。在基础数据 table 中,日期未排序,因此在使用 FIRST() 和 LAST() 时,Spotfire 会给出不正确的值。解决此问题的最佳方法是什么?

我试过了

First([Value) OVER (Intersect([Category],[Date]))

数据集样本:

如果您使用交叉 table,则可以使用嵌套 If 语句 return 日期为最小值和最大值时的值。