Link to home
Start Free TrialLog in
Avatar of vbnetcoder
vbnetcoder

asked on

=Format(Fields!fieldvalue.Value, 0) - shows negative like -123.23 i want it like (123.23)

This code

=Format(Fields!fieldvalue.Value, 0)

shows negative formatted like -123.23 i want it like (123.23)
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

you may try ABS function, like:

=Format(ABS(Fields!fieldvalue.Value), 0) 

Open in new window

Avatar of vbnetcoder
vbnetcoder

ASKER

I tried that and it didn't show the negative as negative at all.

I need it to display like this (233.23)
ok, what about this?
=IIF( Fields!fieldvalue.Value < 0 , "(" & Format(ABS(Fields!fieldvalue.Value), 0)  & ")" , Format(Fields!fieldvalue.Value, 0)  )

Open in new window

try


Format(Fields!fieldvalue.Value, "#,#0.00";(#,#0.00))
That gives me an error
User generated image
"character is not valid"
ASKER CERTIFIED SOLUTION
Avatar of Scamquist
Scamquist
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ty