标签: max cognos appointment
我已在Cognos [Encounter Date]=maximum([Encounter Date] for [Patient Account Number])中使用此表达式来获取最近的访问。有人知道最近两次访问的命令吗?
[Encounter Date]=maximum([Encounter Date] for [Patient Account Number])
答案 0 :(得分:0)
创建排名为[Encounter Date] for [Patient Account Number]的数据项 将过滤器设置在[Rank] <= 2的位置 请记住,过滤器应为聚集后(不是聚集前的默认值)
[Encounter Date] for [Patient Account Number]
[Rank] <= 2