[英]SSRS 2008 tablix results missing values
I have a report that takes an order number as a parameter and shows a tablix with each part number on a row along with the part description, number ordered, number shipped, number remaining to ship, and number on backorder. 我有一个报告,其中将订货号作为参数,并在表中显示了一个Tablix,其中每个零件号都与行说明,零件定购,已订购的数量,已装运的数量,剩余要装运的数量以及未交货的数量一起显示在一行中。
SSMS shows the query returns the same number of rows as the tablix shows. SSMS显示查询返回的行数与tablix显示的行数相同。 However, the tablix has blanks in several places.
但是,tablix在多个地方都有空格。 I have no filters, no visibility settings, and no special conditions.
我没有过滤器,没有可见性设置,也没有特殊条件。 I have zeros set to display as '-'.
我将零设置为显示为“-”。
The blanks occur below identical values in two columns: Number Shipped and Number Remaining. 空白在两列中的相同值下方出现:已发货数量和剩余数量。 That is, a value is not shown (only in these two columns) if it is the same as the value above it, like this:
也就是说,如果一个值与其上方的值相同,则不会显示该值(仅在这两列中),如下所示:
Item Desc #Ordered #Shipped #Remaining #Backorder
1H abc 4 4 - -
2R def 1 - 1 0
5L ghi 6 6 3
7P jkl 6 6 - -
9Q mno 6 -
There should be a - (for zero) for 5L under #Shipped. #Shipped下的5L应该有一个-(代表零)。 9Q should have a 6 under #Shipped and a - under #Remaining, like this:
9Q在#Shipped下应有6,在#Remaining下应有--,如下所示:
Item Desc #Ordered #Shipped #Remaining #Backorder
1H abc 4 4 - -
2R def 1 - 1 0
5L ghi 6 - 6 3
7P jkl 6 6 - -
9Q mno 6 6 - -
What is going on? 到底是怎么回事?
In the query, try isnull(#Shipped,'-') to catch the rest of the blanks. 在查询中,尝试使用notull(#Shipped,'-')来捕获其余的空白。 If that doesn't work, use the TextBox Expression:
如果这不起作用,请使用TextBox Expression:
=switch(len(#Shipped)>0,#Shipped,True,"-")
This will replace the blank values with a dash to match the others. 这将用破折号替换空白值以匹配其他值。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.