简体   繁体   English

SSRS 报表生成器中着色的行数

[英]Count of Rows colored in SSRS Report Builder

I am trying to calculate the Count rows of particular colored Rows.For example我正在尝试计算特定颜色行的计数行。例如

The background colors are coming from an Expression which is a condition based背景 colors 来自基于条件的表达式

So I am trying count how many are green color and How many are red color from the data所以我正在尝试从数据中计算有多少是绿色,有多少是红色

Location Amount位置金额

Usa 100---Green color Background美国100---绿色背景

UK 200--Red Color Background UK 200--红色背景

India 3000---Green color background印度3000---绿色背景


Total Green Rows --- 2总绿色行 --- 2


Looking for help寻求帮助

Thanks谢谢

You can use SUM with the same conditions combined with an Iif expression returning 1 when your expression is true.当您的表达式为真时,您可以将 SUM 与相同的条件与返回 1 的 Iif 表达式结合使用。

Your expression will look like the one below您的表达式将如下所示

=Sum( Iif( condition for green rows, 1, 0) )

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

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