[英]Count Indicators in SSRS Report
I currently have indicators throughout a report based on the comparison of two cells. 我目前基于两个单元格的比较在整个报告中都有指标。
Example: | Indicator | Score 1 | Score 2 | |Green Arrow | 5 | 3 | | Red Arrow | 2 | 4 | |Yellow Line | 10 | 10 |
My goal is to show at the end of the report how many green arrows, red arrows, and yellow lines. 我的目标是在报告的末尾显示多少绿色箭头,红色箭头和黄线。 How would I be able to display the count of the arrows?
如何显示箭头的数量?
Try this: 尝试这个:
For Green Arrows 对于绿色箭头
=Sum(IIF(Fields!Score1.Value>Fields!Score2.Value,1,0))
For Red 对于红色
=Sum(IIF(Fields!Score1.Value<Fields!Score2.Value,1,0))
For Yellow 对于黄色
=Sum(IIF(Fields!Score1.Value=Fields!Score2.Value,1,0))
The Sum
function sums by one every time it finds that Score1
is greater than Score2
for the green arrows case. Sum
函数每次发现绿色箭头的情况下, Score1
大于Score2
,则Sum
。
Let me know if this helps. 让我知道是否有帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.