简体   繁体   English

SSRS 表在没有表达式集的情况下展示条件可见性

[英]SSRS Table exhibiting conditional visibility without expression set

TL;DR: Is there a way to see all (visibility) expressions at work on a report? TL;DR:有没有办法查看报告中的所有(可见性)表达式?

I'm quite new to SSRS.我对 SSRS 很陌生。 I'm working on a report which will contain 2 tables, as below:我正在编写一份包含 2 个表格的报告,如下所示:

The 2 tables, simplified简化的 2 个表

I have one data set, which contains one row for each YearMonth for each KPI.我有一个数据集,其中每个 KPI 的每个 YearMonth 包含一行。

I wanted to create 2 tables containing KPIs.我想创建 2 个包含 KPI 的表。 One would show only the data relating to the KPIs in KPICat1, the other KPICat2.一个将仅显示与 KPICat1 中的 KPI 相关的数据,另一个 KPICat2。

That seemed straight forward.这似乎很直接。

- Create one big table with all the KPIs and hide some rows in the middle to give the illusion of 2 tables.

Or或者

- Create 2 separate tables, and use the show/hide based on expression tool. 

I chose to do it the latter way.我选择了后一种方式。

My problem now is that both tables are exhibiting conditional visibility behaviour, but when I try to change the behaviour, all of the visibility menus (for every cell, row, column, and tablix) appear to be set to show all by default (and not based on expression).我现在的问题是两个表都表现出有条件的可见性行为,但是当我尝试更改行为时,所有可见性菜单(对于每个单元格、行、列和 tablix)似乎都设置为默认显示所有(和不基于表达)。

I know I could start again and likely manage the whole task without any problems.我知道我可以重新开始,并且很可能毫无问题地完成整个任务。 However, is there a way to see all (visibility) expressions at work on a report?, and if not, what would you recommend for troubleshooting this problem?但是,有没有办法在报告中查看所有(可见性)表达式?如果没有,您会推荐什么来解决这个问题?

The .RDL is just an XML encoded file. .RDL 只是一个 XML 编码的文件。 Perhaps you could use this in something like Notepad++ to search for all of the occurrences of the Visibility tag.也许您可以在 Notepad++ 之类的东西中使用它来搜索所有出现的 Visibility 标签。 If a Hidden expression besides False has been placed, then it will appear there, even if it is simply 'true'.如果放置了 False 之外的 Hidden 表达式,那么它就会出现在那里,即使它只是“true”。

To display the data as shown in the example, I would consider ensuring that the KPI Cat is a value in the result set.为了显示示例中所示的数据,我会考虑确保 KPI Cat 是结果集中的一个值。 Then you could use only 1 Tablix, and use a Group for the Categories and their respective details.那么您只能使用 1 个 Tablix,并为类别及其各自的详细信息使用一个组。

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

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