如何将多个SSRS数据集计算转换为HH:MM:SS

时间:2016-07-05 15:36:20

标签: reporting-services

我总计了多个数据集中的值,然后将其除以60以得到小时数。但是我如何显示这个值是hh:mm:ss

例如 - 这是我的表达:

=(count(Fields!Second_Choice_Options.Value," Authorization")* 20 + count(Fields!Second_Choice_Options.Value," ClaimPaid")* 20 + count(Fields!Second_Choice_Options .Value," ClaimPended")* 20 + count(Fields!Second_Choice_Options.Value," General")* 8 + count(Fields!Second_Choice_Options.Value," Reassessment&#34 ;)* 20 + count(Fields!Second_Choice_Options.Value," ReserveReview")* 3 + count(Fields!Second_Choice_Options.Value," Trigger")* 5 + Sum(Fields!ACD_Calls .Value," DataSet3")* 6 + Sum(Fields!Extn_Out_Calls.Value," DataSet3")* 2)/ 60

总答案是4217.然后在几小时内是70.283(这是显示的当前值)但是如何编写表达式以使值返回为70:17:00(70小时17分0秒) )

由于 丹

2 个答案:

答案 0 :(得分:0)

尝试将文本框属性设置为时间,这应该有助于我期望。 enter image description here

答案 1 :(得分:0)

此代码的工作时间<= 24小时:

=Format(DateAdd("s", [YourExpressionToObtainMinutes]*60, "00:00:00"), "HH:mm:ss")

所以你必须稍微改变一下:

=Format([YourExpressionToObtainMinutes]/60, "00") & ":" & Format(DateAdd("s", [YourExpressionToObtainMinutes]*60, "00:00"), "mm:ss")