我怎样才能得到这个 SSRS 计算 return 正确的除法和
How can I get this SSRS calculation to return the correct division sum
我在 SSRS 中有两个单独的长计算,它们是从 HH:MM:SS
转换后的 returning 数值
计算是这样的:
=count(Fields!Second_Choice_Options.Value, "Invoices") * 10 + count(Fields!Second_Choice_Options.Value, "GemPortal") * 10 + count(Fields!Second_Choice_Options.Value, "LoadedHeld") * 10 + 计数(字段!Second_Choice_Options.Value, "Provider") * 10 + 计数(字段!Second_Choice_Options.Value, "AssistanceCase") * 30 + count(Fields!Second_Choice_Options.Value, "AssistanceOngoing")* 15 + count(Fields!Second_Choice_Options.Value, "ClaimPaid")* 27 + count(Fields!Second_Choice_Options.Value, "ClaimDeclined")* 27 + count(Fields!Second_Choice_Options.Value, "ExistingClaimPaid")* 27 + count(Fields!Second_Choice_Options.Value, "ExistingClaimDeclined")* 27 + count(Fields! Second_Choice_Options.Value, "ClaimPended")* 27 + 计数(字段!Second_Choice_Options.Value, "ExistingClaimPended")* 27 + 计数(字段!Second_Choice_Options.Value, "General") * 8 + count(Fields!Second_Choice_Options.Value, "Mads")* 8 + count(Fields!Second_Choice_Options.Value, "Reassessment") * 28 +count(Fields!Second_Choice_Options.Value , "ReserveReview")* 5 +count(Fields!Second_Choice_Options.Value, "Trigger")* 5 + Sum(Fields!ACD_Calls.Value, "DataSet3") * 6 + Sum(字段!Extn_Out_Calls.Value, "DataSet3") * 2
这给了我 6677 的值
而第二次计算是:
=SUM((字段!Staffed_Time.Value)/60) - SUM((字段!Time_in_Default.Value)/60) - SUM((字段!Time_in_Lunch.Value)/60) - SUM((Fields!Time_in_Short_Break.Value)/60) - SUM((Fields!ACW_Time.Value)/60) - SUM((Fields!Time_in_Coaching.Value)/60) - SUM((Fields !Time_in_One_to_One.Value)/60) - SUM((Fields!Time_in_Team_Meeting.Value)/60) - SUM((Fields!Time_in_Comfort.Value)/60) - SUM(Fields!AUX_10.Value )/60
其中 return 的值为 8488
所以在一个单独的文本框中,我想将 Calc 1 (6677) 与 Calc 2 (8488) 分开,得到 return 0.786
但是当我尝试对这些进行直接除法时,我没有得到那个结果。
我已经尝试了第一次计算并除以 1 结果 returns 6677 所以那部分是正确的但是当我做除法时它似乎下降了。
我有一种感觉,它可能只是归结为错误位置(或丢失)的一组括号,但我不知道它们应该放在哪里,那和我对 BODMAS 的记忆让我失望
任何指点将不胜感激
**编辑:
这是我目前使用的总和——它只是两个计算的直接除法
=count(Fields!Second_Choice_Options.Value, "Invoices") * 10 + count(Fields!Second_Choice_Options.Value, "GemPortal") * 10 + count(Fields!Second_Choice_Options.Value, "LoadedHeld") * 10 + 计数(字段!Second_Choice_Options.Value, "Provider") * 10 + 计数(字段!Second_Choice_Options.Value, "AssistanceCase") * 30 + count(Fields!Second_Choice_Options.Value, "AssistanceOngoing")* 15 + count(Fields!Second_Choice_Options.Value, "ClaimPaid")* 27 + count(Fields!Second_Choice_Options.Value, "ClaimDeclined")* 27 + count(Fields!Second_Choice_Options.Value, "ExistingClaimPaid")* 27 + count(Fields!Second_Choice_Options.Value, "ExistingClaimDeclined")* 27 + count(Fields! Second_Choice_Options.Value, "ClaimPended")* 27 + 计数(字段!Second_Choice_Options.Value, "ExistingClaimPended")* 27 + 计数(字段!Second_Choice_Options.Value, "General") * 8 + count(Fields!Second_Choice_Options.Value, "Mads")* 8 + count(Fields!Second_Choice_Options.Value, "Reassessment") * 28 +count(Fields!Second_Choice_Options.Value , "ReserveReview")* 5 +count(Fields!Second_Choice_Options.Value, "Trigger")* 5 + Sum(Fields!ACD_Calls.Value, "DataSet3") * 6 + Sum(字段!Extn_Out_Calls.Value, "DataSet3") * 2 / SUM((字段!Staffed_Time.Value)/60) - SUM((字段!Time_in_Default.Value)/60) - SUM((字段!Time_in_Lunch.Value)/60)-SUM((字段!Time_in_Short_Break.Value)/60)-SUM((字段!ACW_Time.Value)/60)-SUM((字段!Time_in_Coaching.Value)/60) - SUM((Fields!Time_in_One_to_One.Value)/60) - SUM((Fields!Time_in_Team_Meeting.Value)/60) - SUM((Fields!Time_in_Comfort.Value)/60 ) - SUM(字段!AUX_10.Value)/60
它 return 的值为 4158 **
谢谢
旦
在分隔符之前的所有内容周围添加一对括号,在分隔符之后的所有内容周围添加一对括号。即唯一不在括号中的是鸿沟。会发生什么?
我在 SSRS 中有两个单独的长计算,它们是从 HH:MM:SS
转换后的 returning 数值计算是这样的:
=count(Fields!Second_Choice_Options.Value, "Invoices") * 10 + count(Fields!Second_Choice_Options.Value, "GemPortal") * 10 + count(Fields!Second_Choice_Options.Value, "LoadedHeld") * 10 + 计数(字段!Second_Choice_Options.Value, "Provider") * 10 + 计数(字段!Second_Choice_Options.Value, "AssistanceCase") * 30 + count(Fields!Second_Choice_Options.Value, "AssistanceOngoing")* 15 + count(Fields!Second_Choice_Options.Value, "ClaimPaid")* 27 + count(Fields!Second_Choice_Options.Value, "ClaimDeclined")* 27 + count(Fields!Second_Choice_Options.Value, "ExistingClaimPaid")* 27 + count(Fields!Second_Choice_Options.Value, "ExistingClaimDeclined")* 27 + count(Fields! Second_Choice_Options.Value, "ClaimPended")* 27 + 计数(字段!Second_Choice_Options.Value, "ExistingClaimPended")* 27 + 计数(字段!Second_Choice_Options.Value, "General") * 8 + count(Fields!Second_Choice_Options.Value, "Mads")* 8 + count(Fields!Second_Choice_Options.Value, "Reassessment") * 28 +count(Fields!Second_Choice_Options.Value , "ReserveReview")* 5 +count(Fields!Second_Choice_Options.Value, "Trigger")* 5 + Sum(Fields!ACD_Calls.Value, "DataSet3") * 6 + Sum(字段!Extn_Out_Calls.Value, "DataSet3") * 2
这给了我 6677 的值
而第二次计算是:
=SUM((字段!Staffed_Time.Value)/60) - SUM((字段!Time_in_Default.Value)/60) - SUM((字段!Time_in_Lunch.Value)/60) - SUM((Fields!Time_in_Short_Break.Value)/60) - SUM((Fields!ACW_Time.Value)/60) - SUM((Fields!Time_in_Coaching.Value)/60) - SUM((Fields !Time_in_One_to_One.Value)/60) - SUM((Fields!Time_in_Team_Meeting.Value)/60) - SUM((Fields!Time_in_Comfort.Value)/60) - SUM(Fields!AUX_10.Value )/60
其中 return 的值为 8488
所以在一个单独的文本框中,我想将 Calc 1 (6677) 与 Calc 2 (8488) 分开,得到 return 0.786
但是当我尝试对这些进行直接除法时,我没有得到那个结果。
我已经尝试了第一次计算并除以 1 结果 returns 6677 所以那部分是正确的但是当我做除法时它似乎下降了。
我有一种感觉,它可能只是归结为错误位置(或丢失)的一组括号,但我不知道它们应该放在哪里,那和我对 BODMAS 的记忆让我失望
任何指点将不胜感激
**编辑: 这是我目前使用的总和——它只是两个计算的直接除法
=count(Fields!Second_Choice_Options.Value, "Invoices") * 10 + count(Fields!Second_Choice_Options.Value, "GemPortal") * 10 + count(Fields!Second_Choice_Options.Value, "LoadedHeld") * 10 + 计数(字段!Second_Choice_Options.Value, "Provider") * 10 + 计数(字段!Second_Choice_Options.Value, "AssistanceCase") * 30 + count(Fields!Second_Choice_Options.Value, "AssistanceOngoing")* 15 + count(Fields!Second_Choice_Options.Value, "ClaimPaid")* 27 + count(Fields!Second_Choice_Options.Value, "ClaimDeclined")* 27 + count(Fields!Second_Choice_Options.Value, "ExistingClaimPaid")* 27 + count(Fields!Second_Choice_Options.Value, "ExistingClaimDeclined")* 27 + count(Fields! Second_Choice_Options.Value, "ClaimPended")* 27 + 计数(字段!Second_Choice_Options.Value, "ExistingClaimPended")* 27 + 计数(字段!Second_Choice_Options.Value, "General") * 8 + count(Fields!Second_Choice_Options.Value, "Mads")* 8 + count(Fields!Second_Choice_Options.Value, "Reassessment") * 28 +count(Fields!Second_Choice_Options.Value , "ReserveReview")* 5 +count(Fields!Second_Choice_Options.Value, "Trigger")* 5 + Sum(Fields!ACD_Calls.Value, "DataSet3") * 6 + Sum(字段!Extn_Out_Calls.Value, "DataSet3") * 2 / SUM((字段!Staffed_Time.Value)/60) - SUM((字段!Time_in_Default.Value)/60) - SUM((字段!Time_in_Lunch.Value)/60)-SUM((字段!Time_in_Short_Break.Value)/60)-SUM((字段!ACW_Time.Value)/60)-SUM((字段!Time_in_Coaching.Value)/60) - SUM((Fields!Time_in_One_to_One.Value)/60) - SUM((Fields!Time_in_Team_Meeting.Value)/60) - SUM((Fields!Time_in_Comfort.Value)/60 ) - SUM(字段!AUX_10.Value)/60
它 return 的值为 4158 **
谢谢 旦
在分隔符之前的所有内容周围添加一对括号,在分隔符之后的所有内容周围添加一对括号。即唯一不在括号中的是鸿沟。会发生什么?