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.
我有一个 SSRS 报告,那里有一个表格,其中有一个名为 No. Of Days 的列,位于两个日期之间。我通过数据源获取这些日期(日期时间),但不知道如何在 tablix 单元格公式中计算这两个日期之间的天数。
以下将获得两个日期之间的差异:
=DateDiff("d","01-Jun-2011","10-Jun-2011")
结果为 9。
在表格单元格中,它将类似于:
=DateDiff("d",YourDataSet.Fields!FirstDate.Value, YourDataSet.Fields!SecondDate.Value)