Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个记录集,其中行有一个日期字段。行来自今年和去年。我想查看每年的行数。这很容易。现在我想要第三列有区别(count(currentYear)-count(lastYear))。有什么办法可以做到这一点?
谢谢
您似乎希望计算同一日期字段的两个成员之间的差异。
如果是这样,您可能需要考虑使用customizeCell() API 调用来检索每年的计数值,使用它们来计算差异,并使用结果修改必要的单元格。
customizeCell()
或者,您可以尝试修改您的数据集,使lastYear和currentYear是两个不同的字段——例如,这将允许您在计算值中比较它们。
lastYear
currentYear