简体   繁体   English

负值周围的SSRS括号

[英]SSRS parenthesis around negative values

I have expression like this 我有这样的表达

=Sum(Fields!TotalBatch.Value - Fields!TotalUsage.Value)

I need a format like below 我需要以下格式

123.34 123.34

(234.45) (234.45)

I had already set the properties > Number > Use Separator (,) > decimal places = 0 > Negative Numbers using brackets (12,5). 我已经设置了属性>数字>使用分隔符(,)>小数位= 0>使用方括号(12,5)的负数。 But why the separator and the brackets still not appear in when I made preview ? 但是,为什么在进行预览时分隔符和方括号仍然没有出现?

Try this in the textbox: 在文本框中尝试以下操作:

=Format(Sum(Fields!TotalBatch.Value - Fields!TotalUsage.Value),"##0.00;(##0.00)")

Let me know if this helps. 让我知道是否有帮助。

Thanks Alejandro, 谢谢亚历杭德罗,

=Format(Sum(Fields!TotalBatch.Value - Fields!TotalUsage.Value),"##0,0;(##0,0)")

it's work on me finally.. thank you :) 终于在我身上工作了..谢谢:)

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

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