Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/reporting-services/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Reporting services SSR中一组日期时间详细信息行的平均计算时间_Reporting Services - Fatal编程技术网

Reporting services SSR中一组日期时间详细信息行的平均计算时间

Reporting services SSR中一组日期时间详细信息行的平均计算时间,reporting-services,Reporting Services,我正在创建一个SSRS报告,在该报告中,我需要计算一组详细信息行中包含的两个datetime字段之间经过的平均时间。我已经用定义为时间格式的文本框尝试了以下操作hh:mm:ss =avg(DateDiff(DateInterval.Second, Fields!ProcessOpened.Value, Fields!ProcessClosed.Value)) 我得到以下结果 H:mm:ss 试试这个: =Format(DateAdd("s", Avg(DateDiff(DateInterva

我正在创建一个SSRS报告,在该报告中,我需要计算一组详细信息行中包含的两个datetime字段之间经过的平均时间。我已经用定义为时间格式的文本框尝试了以下操作
hh:mm:ss

=avg(DateDiff(DateInterval.Second, Fields!ProcessOpened.Value, Fields!ProcessClosed.Value))
我得到以下结果

H:mm:ss
试试这个:

=Format(DateAdd("s",
Avg(DateDiff(DateInterval.Second,Fields!ProcessOpened.Value,Fields!ProcessClosed.Value))
,"00:00:00"), "HH:mm:ss")