SSRS 将不同的表达式计入是或否

SSRS Count Distinct Expression into a Yes or No

我想知道是否有一种方法或表达式可以在 SSRS 中使用以基于 Distinct Count 函数显示“是”或“否”?

我当前使用的示例 - RM_Name 是组

=CountDistinct(iif(Fields!qtrtradecnt.Value >= 15, 1, Nothing), "RM_Name")

我还想显示 qtrtradecnt is >= 15 是否显示基于 RM_Name 组的 Y 或 N,也许 countdistinct 不是正确使用的函数。 .我已经搞砸了好几天了。

谢谢!

执行此操作的一种方法是在数据集中进行计算..使用 case 表达式..

select
...
,case when your_table.qtrtradecnt >= 15 then 1 else 0 end as rm_count 

from your_table

然后在您的报告中做一个

=iif(sum(Fields!rm_count.value) >15 then 'Y','N')