简体   繁体   English

在ssrs报表中显示空白值

[英]Display Blank values in ssrs reports

I have values in a column (col 3) in ssrs report which is a calculation of two other columns. 我在ssrs报告的一列(列3)中有值,这是另外两个列的计算。 The calculation is col3 = col1/col2 where i set col3 to nothing if col2 is 0. eg iif(col2 = 0,nothing,col1/col2) However the col3 should show blank values in report but it shows 0. The format of col3 is given as "#,0.0%;(#,0.0%)" Is There any way to display the values as blank when col2 is 0 ? 计算为col3 = col1 / col2,如果col2为0,则我将col3设置为空。例如iif(col2 = 0,nothing,col1 / col2)但是col3应该在报告中显示空白值,但显示为0。col3的格式给出为“#,0.0%;(#,0.0%)”当col2为0时,是否有任何方法可以将这些值显示为空白?

Yup i found the solution..The solution was not in the syntax but in the format in which i put the solution in expression dialogue box of ssrs. 是的,我找到了解决方案。解决方案不是语法,而是我将解决方案放在ssrs的表达对话框中的格式。

Initially my solution was : 最初我的解决方案是:

= iif(col2 = 0,nothing, +   
col1/col2) 

Later I changed my solution to : 后来我将解决方案更改为:

= iif(col2 = 0,nothing,col1/col2) 

It worked ! 有效 !

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

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