如何显示零Tablix数据行?(How to make zero tablix data rows appear?)

编程入门 行业动态 更新时间:2024-10-26 17:26:10
如何显示零Tablix数据行?(How to make zero tablix data rows appear?)

我正在制定SSRS 2008报告。 我创建了一个tablix,但是,当我查看此报告时,其中一行的条目为零。 此行未显示在输出中。 如何让它显示无论值如何,否则它只会显示“0”?

这是我用过它的表达式:

=iif(CountDistinct(Fields!Client.Value)=0 or isnothing(countdistinct(Fields!Client.Value)),0, CountDistinct(Fields!Client.Value))

我尝试在不同的字段上进行分组,并在另一个字段上进行过滤,但是当没有数据时,这些字段都不会出现。

I am developing an SSRS 2008 report. I created a tablix, however, when I view this report one of the rows has zero entries. This row is not showing in the output. How can I make it show regardless of values so that it will just show "0" otherwise?

This was the expression I used for it:

=iif(CountDistinct(Fields!Client.Value)=0 or isnothing(countdistinct(Fields!Client.Value)),0, CountDistinct(Fields!Client.Value))

And I have tried grouping on different fields and also filtering on another field, but none of these make it appear when there is no data.

最满意答案

我认为你能做的最好的事情就是确保你使用的数据集具有你想要的记录,即使它是空的。 例如,如果您要对月份进行分组,并且希望所有12个月都显示在Tablix中,那么即使它们对所有其他列都具有空值,您也需要在数据集中存在这些月份。

I think that the best you can do is ensuring that the dataset you are using has the record you want, even if it is null. For example, if you are grouping months, and you want all 12 months to appear in your tablix, then you need to make those months to exist in your dataset even if they have null values for all the other columns.

更多推荐

本文发布于:2023-08-03 08:33:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1385376.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:数据   Tablix   tablix   rows   data

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!