简体   繁体   English

SSRS百分比-两个数据集

[英]Percentage SSRS - two datasets

I've had a look at several questions which are answered on here and I seem to be doing it right bu the percentage is coming out a little different than expected. 我看了几个问题,在这里回答了这些问题,但看来做对了,但百分比所得出的结果与预期略有不同。

Here's the expression: 这是表达式:

=SUM(Fields!Dig_Team.Value,"PivotTable_1") / COUNT(Fields!Dig.Value,"Form_Count")

I am just looking for the percentage difference between the two. 我只是在寻找两者之间的百分比差异。 PivotTable_1 has the "total" and "Form Count" is the number difference I am trying to work out. PivotTable_1具有“总计”,“ Form Count”是我要计算出的数字差异。

Pivot is a total from a pivot table and the Count dataset is just a basic COUNT([Table]) field. 数据透视表是数据透视表的总计,而Count数据集只是一个基本的COUNT([Table])字段。

As it stands two values to work from are: 就目前而言,有两个工作价值:

Pivot = 175      Count = 16

My percentage shows as 8.21% (formatted the text box field as percentage) 我的百分比显示为8.21% (将文本框字段格式化为百分比)

Calculators and websites show this should be around 9.1%.. 计算器和网站显示该比例应为9.1%左右。

Any help or ideas on where I am going wrong? 对我要去哪里有任何帮助或想法吗?

想通了,我只能使用报告输出的总数。

=ReportItems!Textbox127.Value / ReportItems!Barrierman1.Value

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM