SSRS中的划分操作
Divide Operation in SSRS
我正在处理 ssrs 报告,他们希望看到以下结果
[示例输出][1]
那是报告中的最后一行,我想通过在上图中将 558 除以 388 来获得 % 值。
这是我在ssrs中设计的
[报表设计][2]
突出显示的一个包含以下公式:
=( Sum(Fields!Male.Value + Fields!Female.Value ) / (Sum(Fields!Male.Value, "GradeCode" ) + Sum(Fields!Female.Value, "GradeCode" ) ) )
but I'm getting 100% instead of 70%.
Below are the columns I have GradeCode, Male count, female count, race.
Can someone please suggest me the correct formula?
this is the expected result [enter image description here][3]
This is my design [enter image description here][4]
This is my result [enter image description here][5]
I highlighted the last row in that I should get the result of 18/582 instead it is giving 100% (in the pic I just displayed value in % and the denominator is not present)
[1]: https://i.stack.imgur.com/jB9Lz.png
[2]: https://i.stack.imgur.com/iMc6f.png
尝试将数据集名称用于组范围。
例如
=Sum((Fields!Male.Value + Fields!Female.Value), "Federal_Race_Group") / (Sum(Fields!Male.Value,"DataSetName" ) + Sum(Fields!Female.Value,"DataSetName" ) )
查看我的报告预览。我使用了示例数据集。
我正在处理 ssrs 报告,他们希望看到以下结果 [示例输出][1] 那是报告中的最后一行,我想通过在上图中将 558 除以 388 来获得 % 值。
这是我在ssrs中设计的 [报表设计][2] 突出显示的一个包含以下公式:
=( Sum(Fields!Male.Value + Fields!Female.Value ) / (Sum(Fields!Male.Value, "GradeCode" ) + Sum(Fields!Female.Value, "GradeCode" ) ) )
but I'm getting 100% instead of 70%.
Below are the columns I have GradeCode, Male count, female count, race.
Can someone please suggest me the correct formula?
this is the expected result [enter image description here][3]
This is my design [enter image description here][4]
This is my result [enter image description here][5]
I highlighted the last row in that I should get the result of 18/582 instead it is giving 100% (in the pic I just displayed value in % and the denominator is not present)
[1]: https://i.stack.imgur.com/jB9Lz.png
[2]: https://i.stack.imgur.com/iMc6f.png
尝试将数据集名称用于组范围。
例如
=Sum((Fields!Male.Value + Fields!Female.Value), "Federal_Race_Group") / (Sum(Fields!Male.Value,"DataSetName" ) + Sum(Fields!Female.Value,"DataSetName" ) )
查看我的报告预览。我使用了示例数据集。