简体   繁体   English

基于数据的SSRS图表可见性

[英]SSRS Chart visibility based on data

I am currently trying to apply some conditional formatting to a report that will allow me to hide a chart when there is no data available. 我目前正在尝试对报表应用某种条件格式,以便在没有可用数据时可以隐藏图表。 like here 这里

The problem I have is that several charts are built off a single data set and filters are applied within the chart properties to set the content. 我的问题是,多个图表是基于单个数据集构建的,并且在图表属性中应用了过滤器以设置内容。 In some cases these filters will cause the chart to have no data (eg if a store doesn't stock that product line). 在某些情况下,这些过滤器将导致图表中没有数据(例如,如果商店没有库存该产品线)。

I have tried the method I mentioned above, however I think that because my dataset does have data for the store (just not a specific product line) it doesn't hide the chart. 我已经尝试了上面提到的方法,但是我认为因为我的数据集确实具有商店的数据(只是没有特定的产品线),所以它不会隐藏图表。

Any assistance would be greatly appreciated. 任何帮助将不胜感激。

Dan

are you trying to filter out rows or entire tables? 您是否要过滤掉行或整个表? if rows, you can set a row visibility expression - like IIF(Fields!hideme.Value is nothing, true, false) or, alternatively, you can set a row filter under the group properties to do the same thing - select the column that is null that you want to hide when null. 如果是行,则可以设置行可见性表达式-例如IIF(Fields!hideme.Value为true,false,true,false),或者,也可以在组属性下设置行过滤器以执行相同的操作-选择为null时要隐藏的null。 This is how it's going to work everywhere when setting visibility, tables/columns/rows etc. hope that helps 设置可见性,表格/列/行等时,这就是它将在所有地方工作的方式。希望对您有所帮助

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

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