简体   繁体   English

Tablix中的SSRS图表,带有分栏符

[英]SSRS Chart in tablix with Column Break

I wanted to create a multicolumn report with paging. 我想用分页创建一个多列报告。 For complexity I have Gauge control in first row and Chart control in second row. 出于复杂性考虑,我在第一行中具有仪表控制,在第二行中具有图表控制。

I have data from table like this 我有这样的表数据

MetricID | MetricID | ColumnNo | 列号| RowNo RowNo
1 | 1 | 1 | 1 | 1 1
2 | 2 | 2 | 2 | 1 1
3 | 3 | 3 | 3 | 1 1
4 | 4 | 1 | 1 | 2 2

I have created a parent row group on RowNo and parent Column Group on ColumnNo. 我在RowNo上创建了一个父行组,在ColumnNo上创建了父列组。

So it suppose to shows First three records on First page and other one record on next page. 因此,它假定在首页上显示前三个记录,在下一页上显示另一个记录。 For the first page it does what is expected.as shown below. 对于首页,它会执行预期的操作,如下所示。
Page 1 第1页
COL1 | COL1 | COL2 | COL2 | COL3 COL3
```````````````````````````````````````````````````````````` `````````````````````````````````````````````````` ``````````
Gauge1 | 仪表1 | Gauge2 | 仪表2 | Gauge3 Gauge3
Chart1 | 图表1 | Chart2 | 图表2 | Chart3 Chart3

```````````````````````````````````````````````````````````` `````````````````````````````````````````````````` ``````````

but on second page it again shows me three columns. 但是在第二页上,它又显示了三列。 First column with proper data and the other two columns with no data. 第一列具有适当的数据,其他两列均没有数据。 as shown below 如下所示
Page 2 第2页
COL1 | COL1 | COL2 | COL2 | COL3 COL3
```````````````````````````````````````````````````````````` `````````````````````````````````````````````````` ``````````
Gauge4 | 仪表4 | Empty Gauge | 空仪表| Empty Gauge 空仪表
Chart4 | 图表4 | Empty Chart | 空图| Empty Chart 空图

```````````````````````````````````````````````````````````` `````````````````````````````````````````````````` ``````````

Why this two columns gets generated on Page 2 since there is no data returning from procedure? 由于没有数据从过程返回,为什么在页面2上生成这两列? and how can I remove those unwanted columns? 以及如何删除那些不需要的列?

As I am a new to this blog I am not able to upload screenshot. 由于我是此博客的新手,因此我无法上传屏幕截图。 But this is what I can explain. 但这就是我可以解释的。 Can anyone please suggest anything on this. 任何人都可以提出任何建议。

根据空列中的空值设置列可见性。

After so much research I understood that SSRS will generate those two columns from cache data. 经过大量研究,我了解到SSRS将根据缓存数据生成这两列。 So even if there is no data, it will return me the value. 因此,即使没有数据,它也会返回值。 In that case Null checking is also not possible. 在这种情况下,Null检查也是不可能的。 So I created extra records having default value for my check and hide columns conditionally. 因此,我创建了具有默认值的额外记录,用于检查和有条件地隐藏列。

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

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